diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-19 21:05:48 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-19 21:05:48 -0400 |
commit | 6f6862086047ba6902f51de3cb66eb3af04fffbd (patch) | |
tree | cad4673115913aa14413c6a7082359d99a5dd913 /modules/mailer/mail.go | |
parent | 601c10309dd93c55c3c825c5a5c2384d46493589 (diff) |
Pools limit concurrent nums
Diffstat (limited to 'modules/mailer/mail.go')
-rw-r--r-- | modules/mailer/mail.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/mailer/mail.go b/modules/mailer/mail.go index c1d12bba..92acd20e 100644 --- a/modules/mailer/mail.go +++ b/modules/mailer/mail.go @@ -62,8 +62,7 @@ func SendRegisterMail(r *middleware.Render, user *models.User) { msg := NewMailMessage([]string{user.Email}, subject, body) msg.Info = fmt.Sprintf("UID: %d, send register mail", user.Id) - // async send mail - SendAsync(msg) + SendAsync(&msg) } // Send email verify active email. @@ -83,6 +82,5 @@ func SendActiveMail(r *middleware.Render, user *models.User) { msg := NewMailMessage([]string{user.Email}, subject, body) msg.Info = fmt.Sprintf("UID: %d, send email verify mail", user.Id) - // async send mail - SendAsync(msg) + SendAsync(&msg) } |