Sending Emails
Plunk
Configure Plunk provider for sending transactional emails.
Disable Email Tracking
For transactional emails to work correctly without injecting unwanted tracking pixels, you must adjust the Plunk settings:
Go to Settings -> General and set Email Tracking to Marketing Only.
1. Add environment variable
In src/config/env.ts ensure:
PLUNK_SECRET_KEY: z.string().optional(),Add value in your .env:
PLUNK_SECRET_KEY=your_plunk_api_key2. Export Plunk provider
In src/lib/email/index.ts, export the provider:
export * from './providers/plunk';3. Send emails
After exporting Plunk, import sendEmail from @/lib/email in server-side code and call it with your template.