I have an application that generates and sends emails programmatically. The list of recipients can exceed 1000. I scrolled and sent individual emails, but it took too long for about 0.5 seconds. The approach that I will now consider is to remove the setting in the body of the message and send one email with all the addresses in BCC. (Perhaps other solutions are possible, and I welcome them, but I'm mostly interested in the complexity of this BCC solution.)
Is there a limit on the number of recipients allowed per email? Does it completely depend on my mail client and / or SMTP server configuration? Are there other limits outside of my domain control? Also, how is BCC handled? I assume that the distribution of BCC needs to be broken down into separate mail messages at some point. Is the mail client responsible for this (in my case javax.mail), or does the mail server do this?
I'm also interested in suggestions on how I can test my new email blaster program?
I don’t think this will be a valid test by creating 1000 google accounts or anywhere (and I don’t want to). I heard that there is mail server optimization targeted at multiple recipients on the same host. In my case, most of them will be different hosts.
Another way is to get all the recipients to see if they have received the email. I can do this, but I want to avoid spamming them, suggesting that I may need to test several times if this is not the first time.
Or am I just suggesting some restriction and sending batches of letters with a certain number of recipients each, say, 50 or 100?
source
share