Skip to content

Commit

Permalink
feat: add Mailtrap support
Browse files Browse the repository at this point in the history
  • Loading branch information
DominusKelvin committed Nov 20, 2024
1 parent 94e7925 commit 60ac21b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/mail/send.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,14 +304,14 @@ module.exports = {
template_variables: templateVariables,
custom_variables: customVariables
}

let mailtrapInfo
if (testInboxId) {
mailtrapInfo = await mailtrap.testing.send({ ...mailtrapMail })
} else {
mailtrapInfo = await mailtrap.send({ ...mailtrapMail })
}

sails.log.debug('Email sent: %s', mailtrapInfo.message_ids.join(', '))
break
case 'resend':
Expand Down

0 comments on commit 60ac21b

Please sign in to comment.