By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,737 Members | 1,917 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,737 IT Pros & Developers. It's quick & easy.

Replying to a form that I received by email

P: n/a
I am rather new at php so the answer to my question could be somewhere on
the web but unfortunately I couldn't find it until now. I am using a form
that is sent to me by email with the following script.

<?
mail ($to, $subject, $message);
$to = "in**@mysite.com";
$subject = "Reactie via uw website door ".$naam;
$message = $naam."\n".$email."\n".$reactie;
mail ($to, $subject, $message);
?>

Of course the form field names in this case are naam, email and reactie.
It works fine but I receive the email message from a standard address from
my provider in, my case re******@vevida.nl so when I press the reply button
in Outlook, the answer is not sent to the sender.
Is there an additional parameter I can add so that the "from" field in
Outlook is automatically set to the one who sent the email? Or is that a
parameter that can only be supplied by my provider?
Suggestions for an url that explains the topic of course are also welcome.

Thanks for any help

Martien van Wanrooij.

Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
I noticed that Message-ID: <QVdkb.606$2o2.15054@amstwist00> from Martien
van Wanrooij contained the following:
$to = "in**@mysite.com";
$subject = "Reactie via uw website door ".$naam;
$message = $naam."\n".$email."\n".$reactie;
mail ($to, $subject, $message);


$to = "in**@mysite.com";
$subject = "Reactie via uw website door ".$naam;
$message = $naam."\n".$email."\n".$reactie;
$xtra_headers= "From: $email\n";
mail ($to, $subject, $message,$xtra_headers);

--
Geoff Berrow
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #2

P: n/a

"Geoff Berrow" <bl@ckdog.co.uk.the.cat> schreef in bericht
news:98********************************@4ax.com...
$to = "in**@mysite.com";
$subject = "Reactie via uw website door ".$naam;
$message = $naam."\n".$email."\n".$reactie;
$xtra_headers= "From: $email\n";
mail ($to, $subject, $message,$xtra_headers);


Thank you Geoff, that was exactly what I was looking for. :-)
Martien
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.