sveltekit-contact-form-example Svelte Themes

Sveltekit Contact Form Example

Contact form example with SvelteKit using nodemailer

SvelteKit contact form example

Use your email provider app password to send emails from your SvelteKit app.

Read the blog post for more information.

Setup

Copy example.env to .env and fill in the values.

cp example.env .env

Environment variables

Update the environment variables in .env with the values for your email provider.

EMAIL_APP_PASSWORD=your-email-provider-app-password
EMAIL_APP_USER=your-email-provider-user-email
EMAIL_APP_TO_ADDRESS=email-address-to-send-to

Top categories

Loading Svelte Themes