Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Contact Form help Reply To: Contact Form help

#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");