Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GO Email Worker
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Pasan Mallawaarachchi
GO Email Worker
Commits
3b66b248
Commit
3b66b248
authored
Mar 22, 2019
by
Pasan Mallawaarachchi
💻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vaersion changes
parent
eb9fa6ed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
worker.go
worker.go
+4
-4
No files found.
worker.go
View file @
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())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment