summaryrefslogtreecommitdiff
path: root/internal/email/common.go
diff options
context:
space:
mode:
authorLibravatar Mal Hancock <mhancock@archangelic.space>2023-04-29 02:47:14 -0700
committerLibravatar GitHub <noreply@github.com>2023-04-29 11:47:14 +0200
commitfdd2487cfb584255b632cbee7f8d976cb4cc308a (patch)
tree761bfb3b30e83887d9cd49a4bfbd9807d8ff0ef4 /internal/email/common.go
parent[performance] improved request batching (removes need for queueing) (#1687) (diff)
downloadgotosocial-fdd2487cfb584255b632cbee7f8d976cb4cc308a.tar.xz
[bugfix] add From to email header (#1717)
* add From to email header * update tests
Diffstat (limited to 'internal/email/common.go')
-rw-r--r--internal/email/common.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/email/common.go b/internal/email/common.go
index ab4176895..ff148975f 100644
--- a/internal/email/common.go
+++ b/internal/email/common.go
@@ -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)