mirror of https://github.com/xfarrow/blink
Update mail_utils.js
This commit is contained in:
parent
696d1b8b7b
commit
0626cd02c8
|
@ -21,12 +21,10 @@ function sendConfirmationLink(destinationEmail, confirmationLink) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function sendMail(mailOptions) {
|
function sendMail(mailOptions) {
|
||||||
// Send mail with defined transport object
|
|
||||||
transporter.sendMail(mailOptions, (error, info) => {
|
transporter.sendMail(mailOptions, (error, info) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
return console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
console.log('Message sent: %s', info.messageId);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue