Skip to content

Commit

Permalink
Add reply to config (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
albertosouza authored Nov 15, 2024
1 parent 17a2290 commit aabf09c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/private/mail/send.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ module.exports = {
defaultsTo: sails.config.mail.from.name || process.env.MAIL_FROM_NAME
},

replyTo: {
description: 'An email address that will appear on the Reply-To: field',
example: '[email protected]',
defaultsTo: sails.config.mail.replyTo || process.env.MAIL_REPLY_TO
},

layout: {
description:
'Set to `false` to disable layouts altogether, or provide the path (relative ' +
Expand Down Expand Up @@ -123,6 +129,7 @@ module.exports = {
mailer,
from: fromAddress,
fromName,
replyTo,
text,
cc,
bcc,
Expand Down Expand Up @@ -215,6 +222,7 @@ module.exports = {
html,
cc,
bcc,
replyTo,
attachments
})
sails.log.debug('Email sent: %s', smtpInfo.messageId)
Expand Down

0 comments on commit aabf09c

Please sign in to comment.