Home › Forums › Back End › Contact Form help › Reply To: Contact Form help
October 22, 2013 at 7:08 pm
#153761
Participant
and i got a white page that just said “success”. I got all happy and rushed over to my inbox but nothing :(
Alright, good. Let’s look at how you’re sending your email. This time, instead of printing “success”, print this:
if($success){
print "EmailTo: $EmailTo<br>".
"Subject: $Subject<br>".
"Body: $Body<br>".
"From: $emailFrom";
}
That way, we’ll be able to see what values you are actually using in your call to mail
.
But wait
Before you do that, try adding crlf
after your “From” header (it’s required):
// no!
// mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>");
// yes!
mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>\r\n");