> 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.

Why not just put it in the extra headers?

$headers .= "From: $email_address_from_your_database\r\n";

Or you could possibly use ini_set() to change the php.ini setting.

---John Holmes...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to