[Typo3-dev] safe mode and mail() in class.t3lib_htmlmail.php

Martin T. Kutschker Martin.no5pam.Kutschker at blackbox.n0spam.net
Wed Oct 27 13:08:02 CEST 2004


Lars E. D. Jensen wrote:

> Jan-Erik Revsbech wrote:
> 
> 
>>Unfortunally that doesn't resolve the problem. Both sendmail and many
>>other mailer engines will owerwrite the returnpath of the email with ther
>>user calling the sendmail command (which is exactly what mail does). You
>>need to give it the -f flag in order to set the return path correctly, and
>>this is what the fifth parameter in mail is for. If you have another
>>solution, please let me know and I'll change it.
> 
> 
> Well, I don't see any solution with PHP because of safe mode restrictions
> but... 

One could replace mail() with some code that talks to a MTA directly.

Masi




More information about the TYPO3-dev mailing list