2019-08-21 09:42:27 -04:00
|
|
|
import * as nodemailer from 'nodemailer';
|
|
|
|
|
2019-09-09 10:17:24 -04:00
|
|
|
const transporter = nodemailer.createTransport({
|
2019-08-21 09:42:27 -04:00
|
|
|
host: process.env.MAIL_SERVER_HOST,
|
|
|
|
port: parseInt(process.env.MAIL_SERVER_PORT),
|
|
|
|
secure: false,
|
|
|
|
auth: {
|
|
|
|
user: process.env.MAIL_SERVER_USER,
|
|
|
|
pass: process.env.MAIL_SERVER_PASSWORD
|
|
|
|
}
|
2019-09-09 10:17:24 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
export {
|
|
|
|
transporter
|
|
|
|
};
|