Browse Source

Fix email FROM

for-closed-social
Unknwon 8 years ago
parent
commit
96f92e6105
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/mail.go

+ 1
- 1
models/mail.go View File

@ -160,7 +160,7 @@ func composeIssueMessage(issue *Issue, doer *User, tplName base.TplName, tos []s
if err != nil {
log.Error(3, "HTMLString (%s): %v", tplName, err)
}
msg := mailer.NewMessageFrom(tos, doer.Email, subject, content)
msg := mailer.NewMessageFrom(tos, fmt.Sprintf(`"%s" <%s>`, doer.DisplayName(), setting.MailService.User), subject, content)
msg.Info = fmt.Sprintf("Subject: %s, %s", subject, info)
return msg
}

Loading…
Cancel
Save