summaryrefslogtreecommitdiffstats
path: root/modules/mailer
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-16 15:04:54 -0400
committerUnknwon <u@gogs.io>2015-09-16 15:04:54 -0400
commitb003b187883ea50c10b709ca97c26ecf1d9631bb (patch)
tree146439d7fb18901c01e95dad7bfd466c2197c4d6 /modules/mailer
parent6a1907d994c3beb7e604874d2cce3171b32b0baf (diff)
downloadgitea-b003b187883ea50c10b709ca97c26ecf1d9631bb.tar.gz
gitea-b003b187883ea50c10b709ca97c26ecf1d9631bb.zip
#1649 Using commas to delineate emails
Diffstat (limited to 'modules/mailer')
-rw-r--r--modules/mailer/mailer.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/mailer/mailer.go b/modules/mailer/mailer.go
index ff82caa908..28c19ed7cd 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)