summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorHongcai Deng <admin@dhchouse.com>2015-09-07 18:25:15 +0800
committerHongcai Deng <admin@dhchouse.com>2015-09-07 18:25:15 +0800
commit7b92dc3d9df3fdba495bcabe335402bc462ebcb0 (patch)
tree0aa5c2c61f437f4ba92b74830481429ae582ffb9 /modules
parent232c22208c6ba1ad374352152e0900d895fcbe56 (diff)
downloadgitea-7b92dc3d9df3fdba495bcabe335402bc462ebcb0.tar.gz
gitea-7b92dc3d9df3fdba495bcabe335402bc462ebcb0.zip
implemented #1528
Diffstat (limited to 'modules')
-rw-r--r--modules/mailer/mailer.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/mailer/mailer.go b/modules/mailer/mailer.go
index ce3ffc270e..6379b6b7f1 100644
--- a/modules/mailer/mailer.go
+++ b/modules/mailer/mailer.go
@@ -48,6 +48,7 @@ type Message struct {
To []string
From string
Subject string
+ Reply-To 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.Reply-To + "\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,
+ Reply-To: From,
Subject: Subject,
Body: Body,
Type: "html",