Sending Emails
Resend
Configure Resend provider for sending transactional emails.
1. Add environment variable
In src/config/env.ts ensure:
RESEND_API_KEY: z.string().optional(),Add value in your .env:
RESEND_API_KEY=re_1234562. Export Resend provider
In src/lib/email/index.ts, export the provider:
export * from './providers/resend';3. Send emails
After exporting Resend, import sendEmail from @/lib/email in server-side code and call it with your template.