Is this library able to concurrently send email? #135
Answered
by
wneessen
Dennis-Zhang-SH
asked this question in
Q&A
-
I want to send email concurrently. |
Beta Was this translation helpful? Give feedback.
Answered by
wneessen
Jul 17, 2023
Replies: 1 comment 2 replies
-
I just tested it, it seems no. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 multipleMsg
at once for theDialAndSend
method, which then will provided sequencially, but in one call, to the mail server. Alternatively you could set up go routines that create a newClient
and then run those go routines concurrently. But go-mail itself does, at least currently, not provide the appropriate tooling for "cuncurrency".