Skip to content

Is this library able to concurrently send email? #135

Answered by wneessen
Dennis-Zhang-SH asked this question in Q&A
Discussion options

You must be logged in to vote

Well, Email per definition does not exactly provide a concurrency model itself. Mail server accept mail commands sequencially, add the provided mail to their internal queue and then deliver them.

Our Client allows for providing multiple Msg at once for the DialAndSend method, which then will provided sequencially, but in one call, to the mail server. Alternatively you could set up go routines that create a new Client and then run those go routines concurrently. But go-mail itself does, at least currently, not provide the appropriate tooling for "cuncurrency".

Replies: 1 comment 2 replies

Comment options

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

Answer selected by wneessen
@Dennis-Zhang-SH
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants