mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-30 12:21:06 +00:00
Change from header in email, fixes #765
This commit is contained in:
parent
b231b8c927
commit
2321b4b272
|
@ -98,7 +98,7 @@ SUBJECT = %(APP_NAME)s
|
|||
HOST =
|
||||
; Do not verify the certificate of the server. Only use this for self-signed certificates
|
||||
SKIP_VERIFY =
|
||||
; Mail from address
|
||||
; Mail from address. This can be just an email address, or the "Name" <email@example.com> format (including the quotes and brackets)
|
||||
FROM =
|
||||
; Mailer user name and password
|
||||
USER =
|
||||
|
|
|
@ -35,8 +35,7 @@ func (m Message) Content() string {
|
|||
}
|
||||
|
||||
// create mail content
|
||||
content := "From: \"" + m.From + "\" <" + m.User +
|
||||
">\r\nSubject: " + m.Subject + "\r\nContent-Type: " + contentType + "\r\n\r\n" + m.Body
|
||||
content := "From: " + m.From +"\r\nSubject: " + m.Subject + "\r\nContent-Type: " + contentType + "\r\n\r\n" + m.Body
|
||||
return content
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue