I am looking to do the same thing. Could either of you send me the process_w_thankyou.php file? Also, would this work if I want to send the email in HTML format?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In this thread there are instructions for doing what you want. If you can't follow the thread to accomplish what you want, you will have to send me more information on what you have and what you want.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I understand how to do this, thanks! But exactly what do I put into the message body of the email to display the information the formuser entered? I was guessing I could look at the body of the thank you page.
If I'm correct, then I am close to getting it. But I don't know exactly where to begin and where to stop copying. Should I send you a copy of my process.php?
Thanks in advance :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Duplicating the email that is sent to the form admin and having it sent to the form user is a simple addition to the process.php file. Anything else would be more extensive customization. I helps to know both html and php when attempting to make modifications at this level.
From you addition to this post it is unclear exactly what you are attempting to do but if all you want is to send the user the same email as the admin, this should be a very simple change.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can i get the code on how to "Duplicating the email that is sent to the form admin and having it sent to the form user is a simple addition to the process.php file."?
I have the form all set up, i just want to have the form answers sent to the form user as well.
thanks
jonphifom
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Where $email[N] can be either someone@somedomain.com or $_POST['field_1'] when field_1 is the variable from your for that is the email address you want to send to.
Hi, I've just set up an enquiry form and it all works great, sending the enquiry to the site owner with details entered by the user.
My question: what code would I use to send a thankyou email to the user (the variable for user's email address is 'email')
Can anyone help please?
Thanks
Something like this right below the email sent to the form owner:
/*Adding thankyou code here*/
$message="Whatever message you want to send";
mail($email,"Thank You Subject Line",$message,"From: you@yourdomain.com");
/*End of thank you code*/
Sending you an example process_w_thankyou.php file.
Thankyou - I will give it a go :)
Hi - I can't get it to send the email: I have sent you a copy of my code
Thanks
Your original email said the variable name was 'email'. According to your code the variable is 'Email'.
Make this change:
mail($Email,"Thank You Subject Line",$message,"From: you@yourdomain.com";);
Thanks - that was it - it works great now!!
Thanks again!!
:)
I would like to be able to do the same, can you point me in the right direction?
If you can't follow the thread to accomplish what you want, you will have to send me more information on what you have and what you want.
Hi,
I am looking to do the same thing. Could either of you send me the process_w_thankyou.php file? Also, would this work if I want to send the email in HTML format?
In this thread there are instructions for doing what you want. If you can't follow the thread to accomplish what you want, you will have to send me more information on what you have and what you want.
I understand how to do this, thanks! But exactly what do I put into the message body of the email to display the information the formuser entered? I was guessing I could look at the body of the thank you page.
If I'm correct, then I am close to getting it. But I don't know exactly where to begin and where to stop copying. Should I send you a copy of my process.php?
Thanks in advance :)
Duplicating the email that is sent to the form admin and having it sent to the form user is a simple addition to the process.php file. Anything else would be more extensive customization. I helps to know both html and php when attempting to make modifications at this level.
From you addition to this post it is unclear exactly what you are attempting to do but if all you want is to send the user the same email as the admin, this should be a very simple change.
Can i get the code on how to "Duplicating the email that is sent to the form admin and having it sent to the form user is a simple addition to the process.php file."?
I have the form all set up, i just want to have the form answers sent to the form user as well.
thanks
jonphifom
$email1= "some value";
$email2= "some value";
$to="\"".$email1.";".$email2."\"";
Where $email[N] can be either someone@somedomain.com or $_POST['field_1'] when field_1 is the variable from your for that is the email address you want to send to.
mail ( $to , $subject , $message )
http://www.php.net/function.mail