PHP Contact Form {“result”:200}

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #10045804
    middlemann
    Participant

    what does it mean when the form returns: {“result”:200}
    and it doesn’t send the message


    #10045807
    Support
    Keymaster

    Hello,

    It’s probably missing the view.contact.js script on footer of page. This is the file that makes the validation of the form and submit.

    <script src="js/views/view.contact.js"></script>

    Make sure you follow the steps from this topic: https://www.okler.net/forums/topic/important-contact-form-is-not-working/

    And try to enable debug to see the details.

    Kind Regards.


    #10045812
    middlemann
    Participant

    so i edited these settings:

    $mail->IsSMTP(); // Set mailer to use SMTP
    $mail->Host = ’email.secureserver.net’; // Specify main and backup server
    $mail->SMTPAuth = true; // Enable SMTP authentication
    $mail->Username = ‘[email protected]’; // SMTP username
    $mail->Password = ‘*****************’; // SMTP password
    $mail->SMTPSecure = ‘tls’; // Enable encryption, ‘ssl’ also accepted
    $mail->Port = 587; // TCP port to connect to

    now on “Submit” the button just says “Loading…” and nothing happens


    #10045813
    middlemann
    Participant

    and debug mode isn’t showing anything at all


    #10045814
    middlemann
    Participant

    page finally produced this:

    Error! There was an error sending your message.
    2025-05-23 00:11:23 SMTP ERROR: Failed to connect to server: Connection timed out (110)
    SMTP Error: Could not connect to SMTP host.


    #10045815
    Support
    Keymaster

    Hi, looks like the server settings are not correct. You need to verify with the host provider (server administrator) the correct SMTPSecure type (if it is tls), the port and make sure the emails/pass are OK.

    You can also ask them to provide a simple PHP script that works with their server.


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

This topic is marked as "RESOLVED" and can not rceive new replies.