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() doesn't throw an error on malformed FROM address
Moderators: Chris Corbyn, General Moderators
-
iricketson
- Forum Newbie
- Posts: 11
- Joined: Tue May 08, 2007 3:04 pm
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: batchSend() doesn't throw an error on malformed FROM add
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 caseiricketson 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...
Thanks for the heads-up... you're right, I hadn't considered that case