1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-05-11 05:55:29 +00:00

Merge pull request #766 from phsmit/correct_from

Correct usage of FROM in email creation
This commit is contained in:
无闻
2014-12-21 01:55:28 -05:00
3 changed files with 12 additions and 11 deletions

View File

@ -31,9 +31,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