[Typo3-dev] make t3lib_htmlmail->sendTheMail() return a value

Martin Kutschker martin.kutscher.n0 at 5pam.blackbox.net
Wed Mar 23 16:52:48 CET 2005


Hi!

Ok, it returns a value, but only to signal wheter it tried to send a mail at 
all. Would be nice if it'd reported more than this.

Either it could return true/false depending on the return value of 
mail($this->recipient,..) or it could return some kind of bitmask 
(1=mail,2=copy) or return array (eg ret[mail]=true,ret[copy]=false).

Perhaps mail($this->recipient_copy,..) shouldn't be invoked at all if 
mail($this->recipient,..) failed.

Any opinions?

Masi 






More information about the TYPO3-dev mailing list