Skip to content

Is *mail.Client goroutine safe? #268

Answered by wneessen
adpande asked this question in Q&A
Discussion options

You must be logged in to vote

In this case it looks like *smtp.Client is the culprit. It makes use of maps which are not concurrency-safe. Since the *mail.Client uses the *smtp.Client it might fail. I've never really used go-mail in goroutines yet, so I would say it's not currency-safe at this point. I'll add an issue though, to look at this at some point.

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@wneessen
Comment options

Answer selected by wneessen
Comment options

You must be logged in to vote
1 reply
@wneessen
Comment options

Comment options

You must be logged in to vote
2 replies
@wneessen
Comment options

@firefart
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants