[bugfix] add From to email header (#1717)

* add From to email header

* update tests
This commit is contained in:
Mal Hancock
2023-04-29 02:47:14 -07:00
committed by GitHub
parent 6a29c5ffd4
commit fdd2487cfb
3 changed files with 11 additions and 10 deletions

View File

@@ -103,6 +103,7 @@ func assembleMessage(mailSubject string, mailBody string, mailFrom string, mailT
// msg headers.'
msg.WriteString("To: Undisclosed Recipients:;" + CRLF)
}
msg.WriteString("From: " + mailFrom + CRLF)
msg.WriteString("Subject: " + mailSubject + CRLF)
msg.WriteString(CRLF)
msg.WriteString(mailBody)