From b003b187883ea50c10b709ca97c26ecf1d9631bb Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 16 Sep 2015 15:04:54 -0400 Subject: [PATCH] #1649 Using commas to delineate emails --- modules/mailer/mailer.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/mailer/mailer.go b/modules/mailer/mailer.go index ff82caa908c..28c19ed7cd9 100644 --- a/modules/mailer/mailer.go +++ b/modules/mailer/mailer.go @@ -80,7 +80,7 @@ func processMailQueue() { select { case msg := <-mailQueue: num, err := Send(msg) - tos := strings.Join(msg.To, "; ") + tos := strings.Join(msg.To, ", ") info := "" if err != nil { if len(msg.Info) > 0 { @@ -206,7 +206,7 @@ func sendMail(settings *setting.Mailer, recipients []string, msgContent []byte) // Direct Send mail message func Send(msg *Message) (int, error) { - log.Trace("Sending mails to: %s", strings.Join(msg.To, "; ")) + log.Trace("Sending mails to: %s", strings.Join(msg.To, ", ")) // get message body content := msg.Content() @@ -230,7 +230,7 @@ func Send(msg *Message) (int, error) { } return num, nil } else { - body := []byte("To: " + strings.Join(msg.To, ";") + "\r\n" + content) + body := []byte("To: " + strings.Join(msg.To, ",") + "\r\n" + content) // send to multiple emails in one message err := sendMail(setting.MailService, msg.To, body)