Skip to content

Commit

Permalink
fix(smtp): add "Reply-To" header
Browse files Browse the repository at this point in the history
  • Loading branch information
bounoable committed Aug 18, 2020
1 parent 482e8b0 commit 2eab3cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions transport/smtp/smtp.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ func (trans transport) Send(ctx context.Context, let letter.Letter) error {
msg.SetHeader("Bcc", letter.RecipientsHeader(let.BCC))
}

if len(let.ReplyTo) > 0 {
msg.SetHeader("Reply-To", letter.RecipientsHeader(let.ReplyTo))
}

if let.Subject != "" {
msg.SetHeader("Subject", let.Subject)
}
Expand Down

0 comments on commit 2eab3cf

Please sign in to comment.