11 lines
320 B
TypeScript
11 lines
320 B
TypeScript
|
import * as nodemailer from 'nodemailer';
|
||
|
|
||
|
export 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
|
||
|
}
|
||
|
});
|