-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by ChristianToney
-
-
I recently decided to have the data from the forms that were filled out not only emailed to me but to the person filling the form out for conf. When the form is finished and the person hits submit every comes up with the success and the data gets logged on the server but the emails never send out. Any help is much appreciated.
Here is the code:
<?php$name = $_POST["First"];$Last_name = $_POST["Last"];$Age = $_POST["Age"];$Height = $_POST["Height"];$Weight = $_POST["Weight"];$Eye_Color = $_POST["Eye"];$Hair = $_POST["Hair"];$Glasses_or_Contacts = $_POST["Glasses_or_Contacts"];$Customer_Email = $_POST["Contact_Email"];$email_from ='WEBMASTEREMAIL@gmail.com';$email_subject = "Form completion Email";$email_body = $name . $Last_name . $Age . $Height . $Weight $Eye_Color . $Hair . $Glasses_or_Contacts . $Customer_Email;$to = 'CUSTOMEREMAIL@gmail.com, WEBMASTEREMAIL@gmail.com';$headers = "From: $email_from rn";if(!mail($to,$email_subject,$email_body)) {echo 'failed';} else {echo 'sent';}?>All emails were replaced in caps. btwAnd yes I have checked spam and still nothing is sent.
Using the php mail() function
in PHP
Posted
Sorry for the long reply. I'm not receiving any error its just the email never gets to the client or me.