Skip to content

Commit

Permalink
Merge branch 'develop' into feat/complete-support-for-resend-transport
Browse files Browse the repository at this point in the history
  • Loading branch information
DominusKelvin authored Nov 20, 2024
2 parents b1c6e77 + 87c1639 commit 479bec6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/private/mail/send.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ module.exports = {
example: 'Anne Martin',
defaultsTo: sails.config.mail.from.name || process.env.MAIL_FROM_NAME
},

layout: {
description:
'Set to `false` to disable layouts altogether, or provide the path (relative ' +
Expand Down Expand Up @@ -305,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 })
}

mailtrapInfo = await mailtrap.send({ ...mailtrapMail })

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

0 comments on commit 479bec6

Please sign in to comment.