1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Remove unused "User" member of Message Struct and fix bounce address

The User member of a message is not needed anymore.

The from that is send to the server, should always be the "system" from. This is also called the Bounce address http://en.wikipedia.org/wiki/Bounce_address
This commit is contained in:
Peter
2014-12-19 22:48:21 +02:00
parent 2321b4b272
commit edbe1de026
2 changed files with 6 additions and 9 deletions

View File

@@ -30,9 +30,7 @@ const (
// Create New mail message use MailFrom and MailUser
func NewMailMessageFrom(To []string, from, subject, body string) Message {
msg := NewHtmlMessage(To, from, subject, body)
msg.User = setting.MailService.User
return msg
return NewHtmlMessage(To, from, subject, body)
}
// Create New mail message use MailFrom and MailUser