Documentation
supastarter for SvelteKitMailing

Nodemailer

To use Nodemailer with supastarter, make sure you have an SMTP server available, that you can send mails from.

Add the following environment variables to your .env.local file and your deployment environment:

.env.local
MAIL_HOST="your-mail-host"
MAIL_PORT="your-mail-port"
MAIL_USER="your-mail-user"
MAIL_PASS="your-mail-password"

Then, make sure to activate Nodemailer in the config.ts:

export const config = {
  // ...
  mailing: {
    provider: "nodemailer",
  },
};

To customize the provider, edit the packages/mail/provider/nodemailer/index.ts.

For further instructions, follow the general mail instructions.

On this page

No Headings