It's not the recipient that is the problem. The extra headers work fine for that. It's the delivery and read notifications (recipient's mail server). The From header that is generated by sendmail itself is where I'm getting the problem. If I specify the -f option in the sendmail_path it fixes the problem. Just specifying a "From" header works for the recipients e-mail client, but it doesn't work for their server...I also tried "Content-Disposition-To", "Return-Path" and a few others. All unsuccessfully....
-----Original Message----- From: skate [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 11:16 AM To: [EMAIL PROTECTED]; 'CPT John W. Holmes'; [EMAIL PROTECTED] Subject: Re: [PHP] Mail From option in PHP.ini the sendmail_path in php.ini is to do with where abouts the sendmail program is located, not where your sending mail from... if you define the extra headers in the mail, such as FROM and REPLY-TO, you shouldn't have any problems. basically, it's just like fake-mail, and your recipient should be none-the-wiser unless he really wants to sift through the headers. ----- Original Message ----- From: "Brian S. Drexler" <[EMAIL PROTECTED]> To: "'CPT John W. Holmes'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, July 18, 2003 4:10 PM Subject: RE: [PHP] Mail From option in PHP.ini > I tried the extra header. The problem is with the return receipts. The > mail is being generated by a server other than my main e-mail server, so if > I want a delivery/read receipt I have to specify a "From" e-mail address or > else it will default to the user executing the script, i.e. > [EMAIL PROTECTED] ini_set() does not appear to work with sendmail_path. > sendmail_path is in the PHP_INI_SYSTEM group so it can only be set in the > php.ini or httpd.conf...Thanks for the suggestion though... > > -----Original Message----- > From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] > Sent: Friday, July 18, 2003 11:09 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] Mail From option in PHP.ini > > > > 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 > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php