Change from header in email, fixes #765

This commit is contained in:
Peter 2014-12-19 22:33:17 +02:00
parent b231b8c927
commit 2321b4b272
2 changed files with 2 additions and 3 deletions

View file

@ -98,7 +98,7 @@ SUBJECT = %(APP_NAME)s
HOST = HOST =
; Do not verify the certificate of the server. Only use this for self-signed certificates ; Do not verify the certificate of the server. Only use this for self-signed certificates
SKIP_VERIFY = 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 = FROM =
; Mailer user name and password ; Mailer user name and password
USER = USER =

View file

@ -35,8 +35,7 @@ func (m Message) Content() string {
} }
// create mail content // create mail content
content := "From: \"" + m.From + "\" <" + m.User + content := "From: " + m.From +"\r\nSubject: " + m.Subject + "\r\nContent-Type: " + contentType + "\r\n\r\n" + m.Body
">\r\nSubject: " + m.Subject + "\r\nContent-Type: " + contentType + "\r\n\r\n" + m.Body
return content return content
} }