mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 12:14:33 +01:00
60 lines
1.5 KiB
TypeScript
Executable File
60 lines
1.5 KiB
TypeScript
Executable File
/**
|
|
* Config source: https://git.io/JvgAf
|
|
*
|
|
* Feel free to let us know via PR, if you find something broken in this contract
|
|
* file.
|
|
*/
|
|
|
|
import Env from '@ioc:Adonis/Core/Env'
|
|
import { MailConfig } from '@ioc:Adonis/Addons/Mail'
|
|
|
|
const mailConfig: MailConfig = {
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Default mailer
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| The following mailer will be used to send emails, when you don't specify
|
|
| a mailer
|
|
|
|
|
*/
|
|
mailer: 'smtp',
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Mailers
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| You can define or more mailers to send emails from your application. A
|
|
| single `driver` can be used to define multiple mailers with different
|
|
| config.
|
|
|
|
|
| For example: Postmark driver can be used to have different mailers for
|
|
| sending transactional and promotional emails
|
|
|
|
|
*/
|
|
mailers: {
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Smtp
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Uses SMTP protocol for sending email
|
|
|
|
|
*/
|
|
smtp: {
|
|
driver: 'smtp',
|
|
host: Env.get('SMTP_HOST'),
|
|
port: Env.get('SMTP_PORT'),
|
|
auth: {
|
|
user: Env.get('SMTP_USERNAME'),
|
|
pass: Env.get('SMTP_PASSWORD'),
|
|
type: 'login',
|
|
}
|
|
},
|
|
|
|
},
|
|
}
|
|
|
|
export default mailConfig
|