Commit 3b66b248 authored by Pasan Mallawaarachchi's avatar Pasan Mallawaarachchi 💻

vaersion changes

parent eb9fa6ed
...@@ -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