Commit 4f678856 authored by Stephan Handuwala's avatar Stephan Handuwala 🏋🏻

Merge branch 'master' into 'master'

vaersion changes

See merge request stephan-parkwaylabs/go-email-worker!2
parents 181b170a 3b66b248
...@@ -370,11 +370,11 @@ func sendMessage(mg mailgun.Mailgun, sender, subject, body, recipient, cc string ...@@ -370,11 +370,11 @@ func sendMessage(mg mailgun.Mailgun, sender, subject, body, recipient, cc string
* Add CC if cc recipiants are available * Add CC if cc recipiants are available
*/ */
if len(cc) > 0 { if len(cc) > 0 {
message.AddCC(cc)
}
ctx, cancel := context.WithTimeout(context.Background(), time.Second*30) ctx, cancel := context.WithTimeout(context.Background(), time.Second*30)
defer cancel() defer cancel()
message.AddCC(ctx, cc) resp, id, err := mg.Send(ctx, message)
}
resp, id, err := mg.Send(message)
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
//alertAdmin(" MAilgun Error \n" + err.Error()) //alertAdmin(" MAilgun Error \n" + err.Error())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment