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