Forums

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

Home Forums Back End [Continue] Contact form

  • This topic is empty.
Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #68171
    Devilelites
    Member

    It works perfectly, but i don’t get the e-mail. What’s wrong?

    #68174
    AshtonSanders
    Participant

    Can you paste in your PHP Mail() function so I can see it?

    #68178
    Devilelites
    Member

    Yes – here it is. But i think it’s my tempoary hosting service which is the problem. I checked on my other site, and it doesn’t looks like it work. But anyway – here it is:

    Code:
    0 && strlen($subject) > 0 && strlen($from ) > 0 ){
    // if verification code was correct (and fields validate), send the message and show this page
    mail($_POST[‘category’], ‘(GD)’.$subject, $_SERVER[‘REMOTE_ADDR’].”nn”.$message, “From: $from”);
    // delete the cookie so it cannot sent again by refreshing this page
    setcookie(‘tntcon’,”);
    } else if(isset($message) and $message!=””){
    // if verification code was incorrect then return to contact page and show error
    header(“Location:”.$_SERVER[‘HTTP_REFERER’].”?subject=$subject&from=$from&message=$message&wrong_code=true”);
    exit;
    } else {
    echo “Et eller flere felter mangler at blive udfyldt. Gå tilbage og prøv igen.”;
    exit;
    }
    ?>




    Mailen er sendt


    Tak for din henvendelse! Vi vil besvare den hurtigst muligt.
    Fortsat god dag!

    Klik her for at gå tilbage til forsiden.


    #68181
    AshtonSanders
    Participant

    Sorry man, I can’t see anything wrong with the code. =/

    #68182
    Devilelites
    Member

    Anyway, thanks for your help. I’m almost sure it’s the hosting service, because it doesn’t work on my other site too.

Viewing 5 posts - 16 through 20 (of 20 total)
  • The forum ‘Back End’ is closed to new topics and replies.