Contact Form Submit

Home Forums Timessquare Site Template Contact Form Submit

This topic contains 8 replies, has 2 voices, and was last updated by  ab-themes 9 years ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #7021

    berend
    Participant

    Hi,

    I am trying to activate the contact form on my website. Based on the changes in the Timessquare template documentation, I added the two public recaptcha keys to index.html and added the secret key + my email address to php/sendmail.php.

    But when I click Submit, the form does nothing.

    Do I need to make any additional changes? There is not really a clear description of all the necessary steps to activate the contact form in the documentation.

    Thanks,
    Berend

    #7029

    ab-themes
    Keymaster

    Well it’s just html input fields. On their own they won’t do anything. You need to set up a php file that will take your input, compose the mail, and (provided your server is set up for sending and receiving email) send it.

    Look here on how to do that: http://www.templatemonster.com/help/how-create-contact-form-html.html

    And please check if you set recaptchalib.php file properly https://code.google.com/p/recaptcha/wiki/HowToSetUpRecaptcha

    If this doesn’t help you please provide us with your username and password in private content so we can inspect it.

    #7035

    berend
    Participant

    I see, I wasn’t aware that I would need to create a separate php file. I thought that sendmail.php and the code in custom.js already enabled the form to send out emails.

    Unfortunately, I am not very technical. Would you be so kind to take a look for me?

    Thank you.

    #7047

    ab-themes
    Keymaster

    For that we’d need FTP access. Please provide it so that we can see what’s missing.

    #7051

    berend
    Participant

    Here you go (see private content).

    #7082

    berend
    Participant

    Hi, Did you change anything in the meantime?

    When I click the submit button, I see a notification underneath the form now (like “Valid email is required!”. But the message changes to “Could not open socket” after a while.

    #7134

    ab-themes
    Keymaster

    Hi,

    no we didn’t change anything, the only thing we can think of why the form has not worked before is that your host provider had some works on servers.
    But the important thing is that now all works and “Could not open socket” issue
    can be easily repaired:

    Open your cmd and type: ping http://www.google.com The google server replay: Replay from xxx.xxx.xx.xxx … take the ip

    Edit your recaptchalib.php

    At the line

    define(“RECAPTCHA_VERIFY_SERVER”, “www.google.com”);
    replace the http://www.google.com with the google IP address

    define(“RECAPTCHA_VERIFY_SERVER”, xxx.xxx.xxx.xxx);

    that should be it.

    #7254

    berend
    Participant

    Thanks, that solved the issue.

    #7264

    ab-themes
    Keymaster

    Happy to help :)

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

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