reply email header for phone replies
Posted: Sat Feb 25, 2006 2:27 pm
I'm actually trying to figure how to force the reply email to be something inputted by a user... validating the email using regex shouldn't be a problem, as this has been discussed all over and I can find it somewhere on this forum...
the problem is that 1, I dont know how to use headers (im still pretty new to all this).. and 2, I don't know how to make the phone receieve it as a reply email correctly..... right now it shows up zinc.something .. something.. which is the server name or something like that... I don't really know..
if anyone wants to help me setup the reply headers the only thing now that is mailed is
the full source is here:
http://enhancedworks.com/sendText2.phps
(it's a very simple script, because I really don't know much else to use for these things..)
Basically, when they hit reply..... I want it mailed to the email specified by the user.
if the phone cannot send email, it obviously will not send.. I don't care about that.
Is that all I can really do? or is that unsafe to do.....
the problem is that 1, I dont know how to use headers (im still pretty new to all this).. and 2, I don't know how to make the phone receieve it as a reply email correctly..... right now it shows up zinc.something .. something.. which is the server name or something like that... I don't really know..
if anyone wants to help me setup the reply headers the only thing now that is mailed is
Code: Select all
$realMessage = stripslashes($_POST['message']);
$message = "From:" . $name . " | " . $realMessage;http://enhancedworks.com/sendText2.phps
(it's a very simple script, because I really don't know much else to use for these things..)
Basically, when they hit reply..... I want it mailed to the email specified by the user.
if the phone cannot send email, it obviously will not send.. I don't care about that.
Code: Select all
$headers = "From: " . $name;
$headers .= "<" . $email . ">\r\n";
$headers .= "Reply-To: " . $email . "\r\n";
$headers .= "Return-Path: " . $email;