Newbie question regarding unix sendmail form feedback email processing

From: Date: Sat, 23 Feb 2002 06:16:37 +0000
Subject: Newbie question regarding unix sendmail form feedback email processing
Groups: php.install 
Request: Send a blank email to php-install+get-6134@lists.php.net to get a copy of this message
I'm calling a php file from a simple contact request html form. When the script generates emails the reply to and from are in the body of the message and the others are comming from apache (as configured in httpd.conf file. How can I override this? Here's my example. The messages are going out as expected and everything works from that perspective. It's simply the reply to and froms that are incorrect. I'm assuming I need to change php.ini to correct something there in regards to it's call for sendmail. If someone could point me to the correct way of fixing this problem, I'd sure appreciate it! <?php $toaddress = $email; $subject = "Contact Request Form"; $mailcontent = "Firstname: ".$firstname."\n" ."Lastname: ".$lastname."\n" ."Company: ".$company."\n" ."Address: ".$address."\n" ."City: ".$city."\n" ."State: ".$state."\n" ."Zip: ".$zip."\n" ."Phone: ".$phone."\n" ."Fax: ".$fax."\n" ."Email: ".$email."\n" ."Service Interest: ".$serviceinterest."\n" ."Comments: ".$S1."\n"; $fromaddress = "somebody@ourdomain.com\n" ."Reply-To: "sales@ourdomain.com"; $confirmation = "Your contact request has been sent"; $feedbackaddress = "sales@ourdomain.com"; mail ($toaddress, $subject, $confirmation, $fromaddress); mail ($feedbackaddress, $subject, trim($mailcontent), $toaddress); ?> Jim Hankins

« previous php.install (#6134) next »