Emails
Using Resend
Voxstar uses Resend (opens in a new tab) to send emails. You can configure Resend in src/lib/resend.ts
.
Get your Resend API key from the Resend dashboard (opens in a new tab) and add it to your .env.local
file:
RESEND_API_KEY=your-api-key
For Email templates, we use React Email (opens in a new tab), you can modify the templates in src/components/emails
.
Using Mailgun
If you want to use Mailgun instead of Resend, you can configure Mailgun in src/lib/mailgun.ts
.
Get your Mailgun API key & domain from the Mailgun dashboard (opens in a new tab) and add it to your .env.local
file:
MAILGUN_API_KEY=your_mailgun_api_key
MAILGUN_DOMAIN=your_mailgun_domain
And then use the sendMail
function in src/lib/mailgun.ts
to send emails.