I have installed this software and all works great but my question is how do I get the Email From header of the form to say the actual email address of the sender not the server address as its doing at present.
in my case it shows
From: phpFormGenerator@jefferson.noc11.net
so when I click reply you know what happens.
Its much better to be able to click reply and send an email back to the real sender with the original form email on it rather than have to open a new email and copy paste all the info .
There must be a way of doing this... please help :)
Paul
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
first of all, why would you want to "reply"? Who are you replying to? the program? The reply will not be sent to the person who filled out the form, if thats what you are thinking. The sole purpose of the email feature in the program is to send the form data to you (the admin) via email. You cannot communicate to the program via email, it is not human.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-06-28
Why?
Sometimes when we do these for clients, we want to put something else in this field. The server information is a "behind the scenes" item and maybe we want it to show it came from:
webmaster@company.com instead of the server.
Even if no reply is necessary.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-06-23
I had the same idea and changed the "process.php" file in the forms directory.
I can't say on line 62 because it depends on how many fields you have.
the first field in my form is for the emailadres so
in "process.php" on line5 it says:
pt_register('POST','emailadres');
later on line 62, where it starts with:
$message = stripslashes($message);
mail("YOUR_EMAIL_ADRES",".......................
I put:"$emailadres." on the dotted line.
So when someone fills out the form I get mail with the senders address in the subject line this is not great but it is ok for me.
greetz Braama:o)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-07-24
just change the From section of the above mentioned line to "From: ".$EmailAddress.":
Your variable name may be different, change everything between th $ and the .
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have installed this software and all works great but my question is how do I get the Email From header of the form to say the actual email address of the sender not the server address as its doing at present.
in my case it shows
From: phpFormGenerator@jefferson.noc11.net
so when I click reply you know what happens.
Its much better to be able to click reply and send an email back to the real sender with the original form email on it rather than have to open a new email and copy paste all the info .
There must be a way of doing this... please help :)
Paul
first of all, why would you want to "reply"? Who are you replying to? the program? The reply will not be sent to the person who filled out the form, if thats what you are thinking. The sole purpose of the email feature in the program is to send the form data to you (the admin) via email. You cannot communicate to the program via email, it is not human.
Why?
Sometimes when we do these for clients, we want to put something else in this field. The server information is a "behind the scenes" item and maybe we want it to show it came from:
webmaster@company.com instead of the server.
Even if no reply is necessary.
I had the same idea and changed the "process.php" file in the forms directory.
I can't say on line 62 because it depends on how many fields you have.
the first field in my form is for the emailadres so
in "process.php" on line5 it says:
pt_register('POST','emailadres');
later on line 62, where it starts with:
$message = stripslashes($message);
mail("YOUR_EMAIL_ADRES",".......................
I put:"$emailadres." on the dotted line.
So when someone fills out the form I get mail with the senders address in the subject line this is not great but it is ok for me.
greetz Braama:o)
just change the From section of the above mentioned line to "From: ".$EmailAddress.":
Your variable name may be different, change everything between th $ and the .
This would also be helpful for a form I am using, I have copied the line from my process.php exactly as it reads below:
"From: phpFormGenerator");
If I am reading you correctly it should read:
"From: ".$email."");
I'm a little confused about the quotation marks, colons and semi-colons.
Thanks in advance
I used what jontomward said and its sweet.. thanks so much :)
its in
form/process.php , mine is line 33
change to
mail("you@yourdomain.com","Form Submitted at your website",$message,"From: $Emailaddress.");
make sure you use the same spelling as your emailaddress field is ie. mine was on line 25
Email address: ".$Emailaddress."
make sure you DONT add the dot in front of the .$
otherwise you will have a dot in front of the email address on your from line.
Cheers
Paul
You got it!
Sorry I made one small mistake
mail("you@yourdomain.com","Form Submitted at your website",$message,"From: $Emailaddress.");
there is a . atthe end of Emailaddress that shouldnt be there
it should be like like this
mail("you@yourdomain.com","Form Submitted at your website",$message,"From: $Emailaddress");
Cheers
Paul