Skip to content

Commit e85e850

Browse files
committed
Fix sender of issue notifications
It is the FROM field in mailer configuration that needs be used, not the USER field, which is for authentication. Closes gogs#3615
1 parent 491407d commit e85e850

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/mail.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ func composeIssueMessage(issue *Issue, doer *User, tplName base.TplName, tos []s
160160
if err != nil {
161161
log.Error(3, "HTMLString (%s): %v", tplName, err)
162162
}
163-
msg := mailer.NewMessageFrom(tos, fmt.Sprintf(`"%s" <%s>`, doer.DisplayName(), setting.MailService.User), subject, content)
163+
msg := mailer.NewMessageFrom(tos, fmt.Sprintf(`"%s" <%s>`, doer.DisplayName(), setting.MailService.From), subject, content)
164164
msg.Info = fmt.Sprintf("Subject: %s, %s", subject, info)
165165
return msg
166166
}

0 commit comments

Comments
 (0)