colouring-montreal/app/src/api/services/email.ts
2019-09-09 15:17:24 +01:00

16 lines
343 B
TypeScript

import * as nodemailer from 'nodemailer';
const transporter = nodemailer.createTransport({
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
}
});
export {
transporter
};