I plan on using CDONTS to send emails through a script. However, there might be a time where I will have to send about 700 emails. Can CDONTS handle this? Will the performance be better is I send out the emails in bunches of 50 or a 100?
CDONTS uses the NT SMPT services, so if it gets overwhelmed it will queue.
Yes sending 50 at a time would be better.
Also If your send ing that many you have to make sure yur script doesn;t time out ;)
I read in a book that it is better to use the BCC feature in CDONTS for bulk mail. Does it help?
BCC is simply so your email doesn't appear as junk mail as the senders aren't listed when the email is received.
True, but does it make the execution of my code faster?
Not at all.
The "slow" bit of your code is the sending, BCC still involves sending.
Al has had the timeout problem before. He wrote some code that pauses the mail-sending process. I'm sure he'd be happy to share? ;)
Al? would you like to share?? I am making a newsletter script and would definitely like it.
Waiting for your reply.
One to bear in mind is that with MS SMTP server the sys admin can set to max number of recipients for a connection. I think the default is 100 but some hosts may set it lower so that sites don't liberties and send out huge mailings, which would affect the server and thus all sites running on it.
Doing as Al suggested would get around this but some hosts keep a close eye on the the number of mailings as they may be spam and they don't want to be accused of hosting spammers.