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 = "[EMAIL PROTECTED]\n" ."Reply-To: "[EMAIL PROTECTED]"; $confirmation = "Your contact request has been sent"; $feedbackaddress = "[EMAIL PROTECTED]"; mail ($toaddress, $subject, $confirmation, $fromaddress); mail ($feedbackaddress, $subject, trim($mailcontent), $toaddress); ?> Jim Hankins -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php