Skip to content

Commit

Permalink
feat: make use of from in smtp transport
Browse files Browse the repository at this point in the history
  • Loading branch information
lykmapipo committed Sep 12, 2019
1 parent 3f27618 commit 12dabee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/transports/smtp.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,11 @@ exports._send = function (message, done) {
//convert message to nodemailer email payload
let email = message.toObject();

// ensure from
email.from = email.sender || getString('SMTP_FROM');

// allow reply to
email.replyTo = (email.replyTo || email.sender);
email.replyTo = email.replyTo || email.sender;

// set mail html body
if (message.isHtml()) {
Expand Down

0 comments on commit 12dabee

Please sign in to comment.