mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-09 11:21:19 +01:00
implemented #1528
This commit is contained in:
parent
232c22208c
commit
7b92dc3d9d
1 changed files with 4 additions and 2 deletions
|
@ -48,6 +48,7 @@ type Message struct {
|
||||||
To []string
|
To []string
|
||||||
From string
|
From string
|
||||||
Subject string
|
Subject string
|
||||||
|
Reply-To string
|
||||||
Body string
|
Body string
|
||||||
Type string
|
Type string
|
||||||
Massive bool
|
Massive bool
|
||||||
|
@ -63,7 +64,7 @@ func (m Message) Content() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
// create mail content
|
// 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
|
return content
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -252,7 +253,8 @@ func SendAsync(msg *Message) {
|
||||||
func NewHtmlMessage(To []string, From, Subject, Body string) Message {
|
func NewHtmlMessage(To []string, From, Subject, Body string) Message {
|
||||||
return Message{
|
return Message{
|
||||||
To: To,
|
To: To,
|
||||||
From: From,
|
From: setting.MailService.From,
|
||||||
|
Reply-To: From,
|
||||||
Subject: Subject,
|
Subject: Subject,
|
||||||
Body: Body,
|
Body: Body,
|
||||||
Type: "html",
|
Type: "html",
|
||||||
|
|
Loading…
Reference in a new issue