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?
thoughts?
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?
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.
Now I'm wondering if there's a reason why.
Would be interested to hear if the core team did that deliberately.
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..
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..
I believe it does now have a boolean response (I just tested it).