insomnomaniac Posted February 3, 2011 Share Posted February 3, 2011 Hi All, I'm having trouble with an email I'm trying to send out. While testing my code, the email that my script sends has the "Reply-To" email address in the headers but when I click "reply", the recipient's email, $to in the code below, is inserted instead of the "Reply-To" email. Am I missing anything? Thanks for the help in advance! $to = "[email protected]"; $headers = "From: " .$admin_name. "<" .$admin_email. ">\r\n"; $headers .= "Reply-To: " .$host_name. "<" .$host_email. ">\r\n"; $headers .= 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "<br>"; $subject = "Subject"; $body = "Body"; mail($to, $subject, $body, $headers); Link to comment https://forums.phpfreaks.com/topic/226601-help-php-mail-reply-to-does-not-work-always-replies-back-to-recipient/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.