On 07/18/2003 12:00 PM, Brian S. Drexler wrote:
Ok, I want to specify who the mail is coming from by using the sendmail_path option in the PHP.ini. I've added the [EMAIL PROTECTED] to it, but I want to be able to dynmaically change [EMAIL PROTECTED] to [EMAIL PROTECTED] or whatever else. Anyone have any ideas how I can do this? I'm pulling the e-mail I'd like to change it to from a MySQL database but can I rewrite the php.ini file on the fly or am I stuck. Any help is greatly appreciated.
You can try the mail() function 5th parameter if you are under Unix/Linux not in safe mode.
Alternatively you may want to try this class that emulates the envelope sender address using the Return-Path: path header. It comes with different subclasses that implement different mail delivery methods. Each support setting the return-path address in a specific way.
http://www.phpclasses.org/mimemessage
--
Regards, Manuel Lemos
Free ready to use OOP components written in PHP http://www.phpclasses.org/
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php