diff options
Diffstat (limited to 'config/mail.js')
-rw-r--r-- | config/mail.js | 104 |
1 files changed, 0 insertions, 104 deletions
diff --git a/config/mail.js b/config/mail.js deleted file mode 100644 index 8fb6356..0000000 --- a/config/mail.js +++ /dev/null | |||
@@ -1,104 +0,0 @@ | |||
1 | const Env = use('Env'); | ||
2 | |||
3 | module.exports = { | ||
4 | /* | ||
5 | |-------------------------------------------------------------------------- | ||
6 | | Connection | ||
7 | |-------------------------------------------------------------------------- | ||
8 | | | ||
9 | | Connection to be used for sending emails. Each connection needs to | ||
10 | | define a driver too. | ||
11 | | | ||
12 | */ | ||
13 | connection: Env.get('MAIL_CONNECTION', 'smtp'), | ||
14 | |||
15 | /* | ||
16 | |-------------------------------------------------------------------------- | ||
17 | | SMTP | ||
18 | |-------------------------------------------------------------------------- | ||
19 | | | ||
20 | | Here we define configuration for sending emails via SMTP. | ||
21 | | | ||
22 | | https://nodemailer.com/smtp/ | ||
23 | | | ||
24 | */ | ||
25 | smtp: { | ||
26 | driver: 'smtp', | ||
27 | pool: true, | ||
28 | name: Env.get('APP_URL'), | ||
29 | port: Env.get('SMTP_PORT', '2525'), | ||
30 | host: Env.get('SMTP_HOST', 'localhost'), | ||
31 | secure: JSON.parse(Env.get('MAIL_SSL', 'false')), | ||
32 | requireTLS: JSON.parse(Env.get('MAIL_REQUIRE_TLS', 'false')), | ||
33 | authMethod: 'LOGIN', | ||
34 | auth: { | ||
35 | user: Env.get('MAIL_USERNAME'), | ||
36 | pass: Env.get('MAIL_PASSWORD'), | ||
37 | }, | ||
38 | maxConnections: 5, | ||
39 | maxMessages: 100, | ||
40 | rateLimit: 10, | ||
41 | }, | ||
42 | |||
43 | /* | ||
44 | |-------------------------------------------------------------------------- | ||
45 | | SparkPost | ||
46 | |-------------------------------------------------------------------------- | ||
47 | | | ||
48 | | Here we define configuration for spark post. Extra options can be defined | ||
49 | | inside the `extra` object. | ||
50 | | | ||
51 | | https://developer.sparkpost.com/api/transmissions.html#header-options-attributes | ||
52 | | | ||
53 | | extras: { | ||
54 | | campaign_id: 'sparkpost campaign id', | ||
55 | | options: { // sparkpost options } | ||
56 | | } | ||
57 | | | ||
58 | */ | ||
59 | sparkpost: { | ||
60 | driver: 'sparkpost', | ||
61 | apiKey: Env.get('SPARKPOST_API_KEY'), | ||
62 | extras: {}, | ||
63 | }, | ||
64 | |||
65 | /* | ||
66 | |-------------------------------------------------------------------------- | ||
67 | | Mailgun | ||
68 | |-------------------------------------------------------------------------- | ||
69 | | | ||
70 | | Here we define configuration for mailgun. Extra options can be defined | ||
71 | | inside the `extra` object. | ||
72 | | | ||
73 | | https://mailgun-documentation.readthedocs.io/en/latest/api-sending.html#sending | ||
74 | | | ||
75 | | extras: { | ||
76 | | 'o:tag': '', | ||
77 | | 'o:campaign': '',, | ||
78 | | . . . | ||
79 | | } | ||
80 | | | ||
81 | */ | ||
82 | mailgun: { | ||
83 | driver: 'mailgun', | ||
84 | domain: Env.get('MAILGUN_DOMAIN'), | ||
85 | region: Env.get('MAILGUN_API_REGION'), | ||
86 | apiKey: Env.get('MAILGUN_API_KEY'), | ||
87 | extras: {}, | ||
88 | }, | ||
89 | |||
90 | /* | ||
91 | |-------------------------------------------------------------------------- | ||
92 | | Ethereal | ||
93 | |-------------------------------------------------------------------------- | ||
94 | | | ||
95 | | Ethereal driver to quickly test emails in your browser. A disposable | ||
96 | | account is created automatically for you. | ||
97 | | | ||
98 | | https://ethereal.email | ||
99 | | | ||
100 | */ | ||
101 | ethereal: { | ||
102 | driver: 'ethereal', | ||
103 | }, | ||
104 | }; | ||