How to configure mailer?
🔧 Basic Setup
Example (Using Mailtrap):
MAILER_DSN=smtp://username:[email protected]:2525✅ Example Configuration per Environment
Production (.env.prod)
.env.prod)# env.prod
MAILER_DSN=smtp://apikey:your-api-key@sendgridDevelopment & Testing (.env.local / .env.test)
.env.local / .env.test)Option A: Disable Email Delivery (Default)
Option B: Use MailHog (Visual Email Debugger)
Last updated
Was this helpful?
