diff options
author | 无闻 <u@gogs.io> | 2015-09-07 13:10:59 -0400 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2015-09-07 13:10:59 -0400 |
commit | 36405d0faaf6e4ed5e0a0deb37aebf77a8c29ff0 (patch) | |
tree | 4a8760d99881a0a945df39fe2d06956fba39a705 /modules | |
parent | 5020576e8071637ecdedade6c3c4fe06588e3754 (diff) | |
parent | fbb3486c959f3835160cae62ca15c1b4fa197488 (diff) | |
download | gitea-36405d0faaf6e4ed5e0a0deb37aebf77a8c29ff0.tar.gz gitea-36405d0faaf6e4ed5e0a0deb37aebf77a8c29ff0.zip |
Merge pull request #1596 from denghongcai/develop
implemented #1528
Diffstat (limited to 'modules')
-rw-r--r-- | modules/mailer/mailer.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/mailer/mailer.go b/modules/mailer/mailer.go index ce3ffc270e..ff82caa908 100644 --- a/modules/mailer/mailer.go +++ b/modules/mailer/mailer.go @@ -48,6 +48,7 @@ type Message struct { To []string From string Subject string + ReplyTo string Body string Type string Massive bool @@ -63,7 +64,7 @@ func (m Message) Content() string { } // create mail content - content := "From: " + m.From + "\r\nSubject: " + m.Subject + "\r\nContent-Type: " + contentType + "\r\n\r\n" + m.Body + content := "From: " + m.From + "\r\nReply-To: " + m.ReplyTo + "\r\nSubject: " + m.Subject + "\r\nContent-Type: " + contentType + "\r\n\r\n" + m.Body return content } @@ -252,7 +253,8 @@ func SendAsync(msg *Message) { func NewHtmlMessage(To []string, From, Subject, Body string) Message { return Message{ To: To, - From: From, + From: setting.MailService.From, + ReplyTo: From, Subject: Subject, Body: Body, Type: "html", |