|
Posted by A.Translator on 12/13/06 14:46
As I am just beginning to learn php I had to fish a free form script from the
web. The script works fine, it processes the data filled in, including the
sender's email address and sends an email to me with the data.
When I hit the reply-button in my default email client (TheBat!), all is well
and a new email with the sender's address in the to: - field is generated.
But when that same email is opened in Outlook Express, and I hit the reply-to
button, the to: field only shows the name of the sender, not the full email
address (it does appear in the body of the message though).
What do I have to change so that someone using OE can just hirt the reply
button to respond to an email generated by the form?
I hope the following is the relevant code:
=======================================================
$name = strtok( $name, "\r\n" );
$email = strtok( $email, "\r\n" );
if (get_magic_quotes_gpc()) {
$comments = stripslashes( $comments );
}
$messageproper =
"boodschap van:\n" .
$name = $_POST['name'] .
"\n\n" .
"boodschap:\n\n" .
$comments .
"\n\n" .
"telefoonnummer: " .
$phone .
"\n\n------------------------------------------------------------\n" ;
mail($mailto, $subject, $messageproper, "From: \"$email\" <$email>\r\nReply-To:
\"$name\" <$email>\r\nX-Mailer: chfeedback.php 2.04" );
header( "Location: $thankyouurl" );
exit ;
============================================================================
All help is greatly appreciated.
--
Groet,
Adriana
[ gooi de vuilnis weg als je me wilt mailen ]
www.spinsister.nl
[Back to original message]
|