The additional_parameters parameter can be used to pass an additional parameter to the program configured to use when sending mail using the sendmail_path configuration setting. For example, this can be used to set the envelope sender address when using sendmail. You may need to add the user that your web server runs as to your sendmail configuration to prevent a 'X-Warning' header from being added to the message when you set the envelope sender using this method.
Example 375. Sending mail with extra headers and setting an additional command line parameter. mail("[EMAIL PROTECTED]", "the subject", $message, "From: webmaster@$SERVER_NAME", -fwebmaster@$SERVER_NAME); from http://us.php.net/manual/en/function.mail.php Paul Roberts http://www.paul-roberts.com [EMAIL PROTECTED] ++++++++++++++++++++++++ ----- Original Message ----- From: "Brad Dameron" <[EMAIL PROTECTED]> To: "'PHP'" <[EMAIL PROTECTED]> Sent: Monday, October 14, 2002 8:44 PM Subject: RE: [PHP] php mail() Hey do you guys know how to correct this problem with sending email? A custumer uses mail() to send the email and it isn't deliverable. So the message bounces. But since the local sendmail sent the email it thus bounces to root's mailbox instead of say the replyto address. Anyone know how to correct it so that it sends the bounces to the person sending it? This is on a virtual host machine with hundreds of domains. Thank you, --- Brad Dameron Network Account Executive TSCNet Inc. www.tscnet.com Silverdale, WA. 1-888-8TSCNET > -----Original Message----- > From: John W. Holmes [mailto:[EMAIL PROTECTED]] > Sent: Monday, October 14, 2002 12:17 PM > To: 'Rodrigo Peres'; 'PHP' > Subject: RE: [PHP] php mail() > > > > Hi list, > > > > I trying to send mail using PHP's mail() function without success. My > > email > > is rejected because it goes with apache@localhost. I've tried > everything > > put > > a diferent from in header etc. > > > > Does anyone have a clue > > > > My system is a RedHAT 7, PHP4.2.3, sendmail > > > > thank's n advance > > Probably need to set a FROM header in your mail > > $header = "FROM: [EMAIL PROTECTED]"; > > mail($to,$subject,$body,$header); > > Or there is a setting in php.ini that sets this, too. Maybe try that, if > you can. > > ---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