I have an (Java) application that daily sends thousands of emails.
Usually it's one email per few 1K users.
In order to make it more 'personal', each of the users gets the email via "To" field, with only him being the single "To" recipient.
But this sending email in a for-loop takes ages, usually 5-6h.
So, I'm looking if there is some better/faster way to do this.
Some better Java mail client, than the usual JDK stuff.
I'm thinking (out-loud) of the following things:
- instructing smtp server to lay off on the strict checks since he'll receive few 1K emails from trusted source
- instructing server to do 'batch' processing, at the beginning only receiving emails, and after 'commit' sending them
- perhaps server could have option to receive email with all recipients, but sending the email then one-by-one
The solution that I see here is to have some client that knows to adjust to server type.
To execute some custom operations that speed things up.
Any ideas / such clients out there?