UNPKG
email-sender-sdn
Version:
latest (1.0.1)
1.0.1
1.0.0
Reusable email sender with support for HTML, plain text, templates, and attachments.
email-sender-sdn
/
config.js
13 lines
(11 loc)
•
296 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
require('dotenv').config();
module.exports
=
{
host:
process.env.EMAIL_HOST
,
port:
parseInt(process.env.EMAIL_PORT)
,
secure:
process.env.EMAIL_PORT
===
'465'
,
auth:
{
user:
process.env.EMAIL_USER
,
pass:
process.env.EMAIL_PASS
, },
from:
process.env.EMAIL_FROM
, }
;