sendMail() return value

Permalink
The sendMail() function does a pretty good job of logging its use, but it seems like it should return a a boolean response indicating if the mail sent, like mail() does.

thoughts?

PerryGovier
 
jgarcia replied on at Permalink Reply
jgarcia
Yeah, it doesn't return anything...but there is some degree of integration between the C5 mail helper and the Zend mail object (which is a bit more flexible). Perhaps MailHelper::getMailerObject does something more useful?
PerryGovier replied on at Permalink Reply
PerryGovier
I just got done digging through it. It's pretty good at throwing the appropriate exceptions, but it doesn't return anything either...

Now I'm wondering if there's a reason why.

Would be interested to hear if the core team did that deliberately.
andrew replied on at Permalink Reply
andrew
I think it might be hard to actually tell if email is being delivered
properly or not...so they want err on the side of not giving you
information, rather than perhaps potentially giving you information that is
wrong..
freakidz replied on at Permalink Reply
I believe it does now have a boolean response (I just tested it).