Contact form is NOT working

Contact form is NOT working

Support Forums Azul – HTML Template Contact form is NOT working

Tagged: 

This topic contains 27 replies, has 3 voices, and was last updated by  CreaboxThemes 4 years, 10 months ago.

Viewing 13 posts - 16 through 28 (of 28 total)
  • Author
    Posts
  • #4085

    Kedar
    Participant
    #4086

    CreaboxThemes
    Keymaster

    Hi Kedar,

    can you send me you the configuration in the file config.php? Withou the password please.

    Regards

    #4087

    Kedar
    Participant

    <?
    //define the receiver of the email

    define(‘TO_NAME’,’Gorący Potok’); //put your name
    define(‘TO_EMAIL’,’info@goracypotok.pl’); //put your email

    define(‘TEMPLATE_PATH’,’template/default.php’);

    define(‘SMTP_HOST’,’serwer1408104.home.pl’); //for example gmail: smtp.gmail.com
    define(‘SMTP_USERNAME’,’info@goracypotok.pl’); //put your email
    define(‘SMTP_PASSWORD’,’xxxxxxxxx’); //put your password
    define(‘SUBJECT’,’Kontakt ze strony tymczasowej Gorący Potok’); //change if you want the subject

    // Messages
    define(‘MSG_INVALID_NAME’,’Please enter your name.’);
    define(‘MSG_INVALID_EMAIL’,’Please enter valid e-mail.’);
    define(‘MSG_INVALID_MESSAGE’,’Please enter your message.’);
    define(‘MSG_SEND_ERROR’,’Sorry, we can\’t send this message.’);

    ?>

    #4088

    CreaboxThemes
    Keymaster

    Hi,

    I have read in several forums and the problem may be caused by the variable TO_NAME. You can make a test and check if the problem happens yet. Change the variable TO_NAME in this way:

    define('TO_NAME','Name');

    Regards

    #4089

    Kedar
    Participant

    It does not help… Still get information “Could not instantiate mail function.” + information from 19th line of config.php file.

    #4090

    CreaboxThemes
    Keymaster

    Try this possible solution. In the file contact.php, the line 37 is commented. Delete the double slash. The code has to change in this way:

    $mail->IsSMTP(); // enable SMTP

    Regards

    #4091

    Kedar
    Participant

    Does not help. Now I’m getting information: “SMTP ERROR: Could not connect to SMTP host.”

    #4095

    CreaboxThemes
    Keymaster

    Hi Kedar,

    have you tried to contact with your hosting support? Maybe it could be an error in the server.

    If it is not, you can create a little space for me in your server to make tests with the phpmailer. Or phpmailer can be changed by the function that is used in the newsletter form.

    Regards

    #4098

    Kedar
    Participant

    Mails working just fine in other programs. So I think that’s not the serwer fault.

    #4100

    CreaboxThemes
    Keymaster

    Hi again,

    we can trust the next:

    1. Change the file contact.php form this one.
    2. In the file scripts-video.js, instead the function for the contact for, use this one.
    3. In the main file (index.html), change the line <form class="fadeOut-2" action="#" id="contactform"> to this one <form class="fadeOut-2" action="php/contact.php" id="contactform" method="post"> (about the line 202 in your file)

    Regards

    #4105

    CreaboxThemes
    Keymaster

    Hi Kedar,

    any news?

    Regards

    #4106

    Kedar
    Participant

    Yes.. I just resign to use template. We starting main site @ Monday and “Comming soon” template won’t be needed anymore…

    #4111

    CreaboxThemes
    Keymaster

    Ok, sorry for the inconveniences. Regards

Viewing 13 posts - 16 through 28 (of 28 total)

You must be logged in to reply to this topic.