From cb505b22ec5133ffe3263f3857fdcd64fa64260b Mon Sep 17 00:00:00 2001 From: Unknown Date: Mon, 5 May 2014 20:09:38 -0400 Subject: [PATCH] Fix #164 --- modules/mailer/mail.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mailer/mail.go b/modules/mailer/mail.go index 7516ce7e94..2262b5455f 100644 --- a/modules/mailer/mail.go +++ b/modules/mailer/mail.go @@ -140,7 +140,7 @@ func SendIssueNotifyMail(user, owner *models.User, repo *models.Repository, issu content := fmt.Sprintf("%s
-
View it on Gogs.", base.RenderSpecialLink([]byte(issue.Content), owner.Name+"/"+repo.Name), base.AppUrl, owner.Name, repo.Name, issue.Index) - msg := NewMailMessageFrom(tos, user.Name, subject, content) + msg := NewMailMessageFrom(tos, user.Email, subject, content) msg.Info = fmt.Sprintf("Subject: %s, send issue notify emails", subject) SendAsync(&msg) return tos, nil @@ -165,7 +165,7 @@ func SendIssueMentionMail(r *middleware.Render, user, owner *models.User, return fmt.Errorf("mail.SendIssueMentionMail(fail to render): %v", err) } - msg := NewMailMessageFrom(tos, user.Name, subject, body) + msg := NewMailMessageFrom(tos, user.Email, subject, body) msg.Info = fmt.Sprintf("Subject: %s, send issue mention emails", subject) SendAsync(&msg) return nil