Skip to content

Commit 8fddf1c

Browse files
committed
Log mails sent to console
1 parent 929271b commit 8fddf1c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils/mail.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export class mailUtils {
4040
this.mailer.sendMail({ to: `${name} <${email}>`, subject, html, text }, (err, info) => {
4141
if (err) return reject(err);
4242

43+
console.log(`[INFO] Sent mail ${info.messageId} to ${name} with subject ${subject}`);
4344
resolve(info);
4445
});
4546
});

0 commit comments

Comments
 (0)