This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Error message after hitting submit button


  1. koretelematics
    Member

    I get this error message:
    "Error sending email: Could not instantiate mail function."

    I search the forum for fixes and try changing the SMTP and still have the same problem.

    Website: www.koretelematics.com
    Form url: www.koretelematics.com/DTech

    Please advise. Thank you!

    Posted 16 years ago #
  2. redityo

    Hi,

    It seems you have problem with PHP mail function, could you try to make a PHP file and put this script :

    <?php
    if (mail('test@test.com', 'email test','test email'))
    {
    echo 'mail send!';
    }
    ?>

    change email address with yours then run that PHP file, if you have no problem with your mail server it should send you an email. Otherwise try to use your SMTP mail server, you can set SMTP setting in your "config.php" file, search for these code :

    /** SMTP settings **/
    /** Don't modify it unless you know you are using SMTP **/
    define('USE_SMTP',false); //set this to 'true' to use SMTP
    
    define('SMTP_HOST','');
    define('SMTP_PORT',25);
    define('SMTP_AUTH',false); //if your SMTP require authentification, set this to 'true'
    define('SMTP_USERNAME','YOUR_SMTP_USERNAME');
    define('SMTP_PASSWORD','YOUR_SMTP_PASSWORD');
    define('SMTP_SECURE',false); //set this to 'true' if your server is using secure SMTP (TLS/SSL)

    MachForm Support

    Posted 16 years ago #
  3. koretelematics
    Member

    Thank you, I'll give that a try!

    Posted 16 years ago #

RSS feed for this topic

Reply