Page 1 of 1

batchSend() doesn't throw an error on malformed FROM address

Posted: Tue May 08, 2007 3:46 pm
by iricketson
When sending email from the batchSend() method, if the FROM address is not an instance of Swift_Address, it will not throw an error, the email just doesn't send.

If you do the same thing with the send() method, it throws an error letting you know that the FROM address is not an instance of Swift_Address.




Just thought you might like to know...

Re: batchSend() doesn't throw an error on malformed FROM add

Posted: Tue May 08, 2007 3:51 pm
by Chris Corbyn
iricketson wrote:When sending email from the batchSend() method, if the FROM address is not an instance of Swift_Address, it will not throw an error, the email just doesn't send.

If you do the same thing with the send() method, it throws an error letting you know that the FROM address is not an instance of Swift_Address.




Just thought you might like to know...
batchSend() masks errors (new code in the most recent release). I'll do a preliminary check on the address before the batch starts rolling. This should make the error visible in this case :)

Thanks for the heads-up... you're right, I hadn't considered that case :)