[TYPO3-core] RFC: Feature Request #2797: sendFlag for mail in htmlmail
Martin Kutschker
martin.t.kutschker at n0spam.blackbox.net
Sat Jan 12 22:04:25 CET 2008
Oliver Hader schrieb:
> Hi,
>
> Daniel Pötzinger schrieb:
>> Oliver Klee schrieb:
>>> Hi,
>>>
>>> -1 because the function already returns a boolean that indicates
>>> success/failure. We should use that instead (and properly document it in
>>> the function comment).
>>>
>>> In addition, using a member variable to indicate the return value of a
>>> function makes my programming-style hairs stand on end ...
>>>
>> I fully agree on oliver. At least the core development should follow
>> clean development.
>>
>> Why not just return false if mail send fails?
>
> Thanks guys for your attention, you're right! The initial bug report was
> about the missing return value in t3lib_htmlmail::send(). The more
> specific change in t3lib_htmlmail::sendTheMail() is additional but it
> makes sense to check whether the mail was really accepted for delivery
> and return this boolean value.
+1 based on reading.
Masi
More information about the TYPO3-team-core
mailing list