You've already forked openaccounting-server
mirror of
https://github.com/openaccounting/oa-server.git
synced 2025-12-09 00:50:59 +13:00
make Sender header match From
This commit is contained in:
@@ -192,6 +192,7 @@ func (model *Model) SendVerificationEmail(user *types.User) error {
|
||||
"<a href=\"" + link + "\">" + link + "</a>"
|
||||
|
||||
message := mg.NewMessage(from, subject, plainTextContent, to)
|
||||
message.AddHeader("Sender", from)
|
||||
message.SetHtml(htmlContent)
|
||||
|
||||
ctx, cancel := context.WithTimeout(context.Background(), time.Second*10)
|
||||
@@ -229,6 +230,7 @@ func (model *Model) SendPasswordResetEmail(user *types.User) error {
|
||||
"nothing will happen."
|
||||
|
||||
message := mg.NewMessage(from, subject, plainTextContent, to)
|
||||
message.AddHeader("Sender", from)
|
||||
message.SetHtml(htmlContent)
|
||||
|
||||
ctx, cancel := context.WithTimeout(context.Background(), time.Second*10)
|
||||
|
||||
Reference in New Issue
Block a user