rubing Posted April 1, 2008 Share Posted April 1, 2008 I wrote an autoresponder script in order to reply to mobile phone text message emails. It is working great, however when I send a text from certain phone providers (e.g. Verizon) the return path provided in the script is not used and instead the default for my domain is displayed. This is an interactive script where users can reply to my autoresponder, so I need the return path to go to the address specified. Here is my code: $headers = 'From: [email protected]' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); I am writing a php autoresponder script, so that people can send a text message a query to Link to comment https://forums.phpfreaks.com/topic/98908-mail-return-path-is-inconsistent/ Share on other sites More sharing options...
rubing Posted April 1, 2008 Author Share Posted April 1, 2008 I just solved this by including the following additional parameter to mail() $envelope="-r [email protected]"; Link to comment https://forums.phpfreaks.com/topic/98908-mail-return-path-is-inconsistent/#findComment-506118 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.