Appnitro Software Forums » MachForm 2

Problem with Email


  1. Hi,

    I had installed the software correctly, but I can't get the smtp email notifications to work. It says that the form was submitted successfully, but I don't get the email. Anyone have a similar issue.

    Posted 3 years ago #
  2. ok, i ifgured out that I need to use a different way to send the emails. I receive this error: Warning: fsockopen() [function.fsockopen]: unable to connect to mbox.freehostia.com:25 (Permission denied) in /home/www/sahaka.freehostia.com/admin/lib/class.smtp.php on line 105
    Error sending email: SMTP Error: Could not connect to SMTP host.
    Warning: Cannot modify header information - headers already sent by (output started at /home/www/sahaka.freehostia.com/admin/lib/class.smtp.php:105) in /home/www/sahaka.freehostia.com/admin/confirm.php on line 38

    the support guy said: fsockopen() is restricted on our servers due to security reasons. You will have to disable the SMTP via PHP mail sending option and to choose Sendmail or php mail() function. This will solve the problem that you experience permanently.

    the problem is that I dont know how to do this. can anyone help me with instructions

    Posted 3 years ago #
  3. redityo

    Hi,

    Have you make sure SMTP option in machform "config.php" is "false" ?

    /** SMTP settings **/
    /** Don't modify it unless you know you are using SMTP **/
    define('USE_SMTP',false); //set this to 'true' to use SMTP

    MachForm Support

    Posted 3 years ago #
  4. yes it it, but the email notifications still don't work

    Posted 3 years ago #
  5. Hmm.. if you have set the USE_SMTP to false, then your MachForm is using PHP mail() function as instructed by your web hosting.

    If that doesn't work either, there might be something wrong with your mail server.

    Lets test your server mail functionality. To test it, create a .php file and put this code:

    <?php
     mail('your_email@example.com', 'Test Subject', 'Test Message');
     echo "Mail sent! Please check it.";
    ?>

    Change the email address to the same addres you used for MachForm and run the script.
    If you didn't get any email, there might be some problem with your mail server.


    MachForm Founder

    Posted 3 years ago #
  6. I think there is a problem with my mail server. How would i fix that?

    Posted 3 years ago #
  7. I suggest to contact your hosting tech support and let them know your test script.
    They should be able to test it using that script and fix the problem.


    MachForm Founder

    Posted 3 years ago #

RSS feed for this topic

Reply