Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #13758

    Hello my contact form is not sending. Edited all the placed where I believe I should add my e-mail address to have the information sent to me when you click send but nothing is happening. This is not the WordPress site only HTML & PHP please help asap.

    #80487

    Hello,

    If it is not a WordPress site, I don’t think we can possibly offer you any help. Can you give us a link?

    Regards,

    Ismael

    #80488

    http://www.savethecathouse.org.

    So support is only for WP even if I purchased the HTML files from you folks?

    #80489

    Hello,

    Sorry, I thought you have a PHP files that you created on your own. :)

    Regards,

    Ismael

    #80490

    Hi,

    I visited the contact page and tested it. It seems to be working, at least it gives me the notice that my message has been sent.

    Regards,

    Ismael

    #80491

    It works but it doesn’t send to my e-mail address. I think something is wrong with the send.php file. see code below.

    This is the code in my send.php file.

    <?php

    if(isset($_POST)){

    $error = false;

    $the_name = $_POST;

    $the_email = $_POST;

    $the_website = $_POST;

    $the_message = $_POST;

    if(!checkmymail($the_email))

    {

    $error = true;

    $the_emailclass = “error”;

    }else{

    $the_emailclass = “valid”;

    }

    if($the_name == “”)

    {

    $error = true;

    $the_nameclass = “error”;

    }else{

    $the_nameclass = “valid”;

    }

    if($the_message == “”)

    {

    $error = true;

    $the_messageclass = “error”;

    }else{

    $the_messageclass = “valid”;

    }

    if($error == false)

    {

    $to = $_POST;

    $subject = “New Message from ” . $_POST;

    $header = ‘MIME-Version: 1.0′ . “rn”;

    $header .= ‘Content-type: text/html; charset=utf-8′ . “rn”;

    $header .= ‘From:’. $_POST . ” rn”;

    $the_message = nl2br($the_message);

    $message = “New message from $the_name

    Mail: $the_email

    Website: $the_website

    Message: $the_message

    “;

    mail($to,

    $subject,

    $message,

    $header);

    if(isset($_POST)){

    echo”<h3>Your message has been sent!</h3><p> Thank you!</p>”;

    }

    }

    }

    function checkmymail($mailadresse){

    $email_flag=preg_match(“!^w[w|.|-]+@w[w|.|-]+.[a-zA-Z]{2,4}$!”,$mailadresse);

    return $email_flag;

    }

    ?>

    #80492

    Please insert your contact details in contact.php – open up the file and modify following two lines:

    $name_of_your_site = "Display.net";
    $email_adress_reciever = " (Email address hidden if logged out) ";

    Display.net must be replaced with your website address, the email address must be replaced with your email address.

    #80493

    Thanks for responding Dude. I’ve added my site name and currently nothing is coming through still. I’m stuck on this contact form.

    Please advise. Thank you.

    #80494

    I’ve removed the form for now and left text as this site is being promoted through media right now. The form did seem as if it submitted completely but nothing comes to my e-mail box I checked spam too and nothing.

    #80495

    Hi jessejames,

    The only other thing I can think of is to make sure the spelling for your email and website is correct and that the email recipient address isn’t automatically rejecting the emails for some reason (server side spam filter for example).

    Regards,

    Devin

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘Contact Form Not Sending’ is closed to new replies.