16 lines
318 B
JavaScript
16 lines
318 B
JavaScript
import nodemailer from 'nodemailer';
|
|
|
|
const transporter = ($) => {
|
|
return nodemailer.createTransport({
|
|
host: $.auth.data.host,
|
|
port: $.auth.data.port,
|
|
secure: $.auth.data.useTls,
|
|
auth: {
|
|
user: $.auth.data.username,
|
|
pass: $.auth.data.password,
|
|
},
|
|
});
|
|
};
|
|
|
|
export default transporter;
|