Skip to content

Commit

Permalink
Mailer Somewhat Ready
Browse files Browse the repository at this point in the history
  • Loading branch information
jaison080 committed Dec 25, 2023
1 parent 0fdee5f commit 9853fa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/mailer.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const main = async (body) => {
html: body.content,
};
await transporter.sendMail(mailOptions);
console.log(`Sent mail to ${body.toEmail} with subject ${body.subject}`);
return(`Sent mail to ${body.toEmail} with subject ${body.subject}`);
} catch (error) {
console.error(
return(
`Failed to send email to ${body.toEmail} having error : ${error}`
);
}
Expand Down

0 comments on commit 9853fa1

Please sign in to comment.