473,395 Members | 1,440 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Replying to a form that I received by email

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
2 1943
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

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: a c s | last post by:
Hello, I'm a php newbie and have been using the following php code fine (until now) to submit a form and create an email message. I recently moved the site from a local server to an ISP's server...
4
by: phatnugs420 | last post by:
Hi all, i've been struggling with creating a form that lets you add an attachment and the attachment is sent via email.. I was wondering if recieving attachments in an md5 form is the only way to...
16
by: whyyyy | last post by:
The script below works fine if the form is filled out and submitted. But a (blank) e-mail is sent whenever the page loads, even when the form is not submitted. I would like to receive the e-mail...
6
by: Vik Rubenfeld | last post by:
I've got this form mail program that is called as an action from an HTML form. It runs with no errors, but the email is never sent - at least, it's never received. Here's the code: <? $email =...
12
by: colt28 | last post by:
Ok so I found an ajax contact form script but i can't get the b****** to work. I made a bunch of alterations to it and it didn't work so i replaced everything with the original and it still didn't...
5
by: simononestop | last post by:
Hi im totally new to perl this is my first go at using it (I normally use asp). I have set up a form with a cgi script from demon hosting. I have edited the script and the form works it sends me an...
3
by: RLN | last post by:
I have an app that will send out an email periodically. My table has one row and three columns: a primary key, an "EmailFrom" Address and an Email template. The template is the text of the...
6
by: smk17 | last post by:
I've spent the last few minutes searching for this question and I found an answer, but it wasn't quite what the client wanted. I have a simple online form where the user needs to fill out five...
1
by: starter08 | last post by:
Hi, I have a C++ routine(client-side) which uploads an xml file to a web server by making a socket connection and sending all the post request through that socket. On the server side I have a cgi...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.