Mail Adapters
Mailgun
Install dependencies:
npm install mailgun.js --save
Within @/config.js
import defineConfig from '@/lib/config/defineConfig'
import mailAdapters from '@/lib/mail/adapter'
export default defineConfig({
mail: {
defaultAdapter: 'mail',
adapters: [
mailAdapters.mailgun({
id: 'mailgun', // default
subdomain: "mg",
fromNoReply: `Your App <noreply@mg.your-domain.com>`,
fromAdmin: `Your Name at Your App <hello@mg.your-domain.com>`,
supportEmail: "hello@mg.your-domain.com",
forwardRepliesTo: "hello@your-domain.com",
})
]
}
})
Roadmap
- TODO: Show how to send an email via the adapter
- TODO: Show "how to create a custom mail adapter yourself"