new coverMe routine; refactoring
This commit is contained in:
@ -25,22 +25,23 @@ let mailtrapTestClient = null;
|
||||
// password: 'c7bc05f171c96c'
|
||||
// });
|
||||
|
||||
//test
|
||||
//PROD MAILTRAP
|
||||
var transporter = nodemailer.createTransport({
|
||||
host: process.env.MAILERSEND_SERVER,
|
||||
port: process.env.MAILERSEND_PORT,
|
||||
host: process.env.MAILTRAP_HOST || "sandbox.smtp.mailtrap.io",
|
||||
port: 2525,
|
||||
auth: {
|
||||
user: process.env.MAILERSEND_USER,
|
||||
pass: process.env.MAILERSEND_PASS
|
||||
user: process.env.MAILTRAP_USER,
|
||||
pass: process.env.MAILTRAP_PASS
|
||||
}
|
||||
});
|
||||
// production
|
||||
|
||||
//PROD MAILERSEND
|
||||
// var transporter = nodemailer.createTransport({
|
||||
// host: "live.smtp.mailtrap.io",
|
||||
// port: 587,
|
||||
// host: process.env.MAILERSEND_SERVER,
|
||||
// port: process.env.MAILERSEND_PORT,
|
||||
// auth: {
|
||||
// user: "api",
|
||||
// pass: "1cfe82e747b8dc3390ed08bb16e0f48d"
|
||||
// user: process.env.MAILERSEND_USER,
|
||||
// pass: process.env.MAILERSEND_PASS
|
||||
// }
|
||||
// });
|
||||
|
||||
|
Reference in New Issue
Block a user