Re: Sending e-mail with CDO and SSL
Posted: Thu Apr 04, 2013 2:20 pm
Rick,
Well it is a crude start. It has no input format checking which is what turned out to be Tim's problem.
As, Enrico pointed out, you may get random errors preventing mail from being sent. I posted a sample loop on error solution in another thread. viewtopic.php?f=3&t=25614&p=142536#p142536
If you are sending multiple emails in one session, the above code starts and ends the connection with each email. It would be better to separate the connection from the sending. This will be much faster for multiple emails.
I also don't like Tim's data array. It would be much better to use an object.
Those are just a few ideas for improvement.
I am working on a CDO class.
James
Well it is a crude start. It has no input format checking which is what turned out to be Tim's problem.
As, Enrico pointed out, you may get random errors preventing mail from being sent. I posted a sample loop on error solution in another thread. viewtopic.php?f=3&t=25614&p=142536#p142536
If you are sending multiple emails in one session, the above code starts and ends the connection with each email. It would be better to separate the connection from the sending. This will be much faster for multiple emails.
I also don't like Tim's data array. It would be much better to use an object.
Those are just a few ideas for improvement.
I am working on a CDO class.
James