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

emails


  1. adi
    Member

    what might be the problem if my emails are not coming through to my inbox? I can see that there is a new entry online in the admin but the emails never arive in my inbox and this is the new version?

    thanks

    Posted 15 years ago #
  2. yuniar

    Your host might require you to use SMTP to be able sending email.
    What is your hosting company?

    When you have your SMTP details, you can put them into your config.php file.


    MachForm Founder

    Posted 15 years ago #
  3. adi
    Member

    do i have to contact my hosting company to ask them that or is there a way to find that out on my own?

    thank you

    Posted 15 years ago #
  4. adi
    Member

    i know my smtp now what information do i have to change???

    Posted 15 years ago #
  5. yuniar

    change this line:

    define('USE_SMTP',false);

    to become:

    define('USE_SMTP',true);

    then adjust the settings below that line accordingly:

    define('SMTP_HOST','localhost');
    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');

    MachForm Founder

    Posted 15 years ago #
  6. adi
    Member

    this is what my host send me is this any help to me??

    POP3 Host Address : mail.********.com
    SMTP Host Address: mail.********.com
    Username: ********
    Password: ********

    i changed the username and password and tried to resend the email but still no luck

    do i have to change HOST and PORT to mail.******.com ??

    Posted 15 years ago #
  7. yuniar

    Yes, change the host to use your host.
    Also, change this line:

    define('SMTP_AUTH',false);

    to become:

    define('SMTP_AUTH',true);

    MachForm Founder

    Posted 15 years ago #
  8. adi
    Member

    so instead of localhost put it mail.*******.com

    and what do i put instead of the number in port???

    i changed that line

    Posted 15 years ago #
  9. yuniar

    The default port number is 25, most likely you won't need to change this one.
    However, if your host specify another port, simply adjust it.


    MachForm Founder

    Posted 15 years ago #
  10. adi
    Member

    this i what i did and it doesnt work i get nothing

    define('USE_SMTP',true); //set this to 'true' to use SMTP

    define('SMTP_HOST','mail.********.com');
    define('SMTP_PORT',25);
    define('SMTP_AUTH',true); //if your SMTP require authentification, set this to 'true'
    define('SMTP_USERNAME','********');
    define('SMTP_PASSWORD','********');

    Posted 15 years ago #
  11. yuniar

    That's odd.
    Are you installing MachForm on a new server?

    I notice that you've been using MachForm since version 1.2
    Is it the same host as before? Is version 1.2 email working fine?


    MachForm Founder

    Posted 15 years ago #
  12. adi
    Member

    no all new server

    Posted 15 years ago #
  13. yuniar

    Hmm.. can I have temporary FTP login to your machform folder?
    I'll investigate it.

    Send me the details through this form:
    http://www.appnitro.com/support/index.php?pg=request


    MachForm Founder

    Posted 15 years ago #
  14. adi
    Member

    sorry boss doesn't allow access to anyone so i will try and figure it out if all fails at least i get them online in the admin

    thanks for the help anyways

    Posted 15 years ago #
  15. yuniar

    Ok, no problem.

    Perhaps you can try to change your email address and make sure you have all the correct setting on your "Emails" page.

    Or perhaps try creating a simple test email script.
    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 15 years ago #
  16. adi
    Member

    that worked i made a new page and the email arrived

    Posted 15 years ago #
  17. adi
    Member

    does that mean that i dont have to use smtp that the error is somewhere else??

    Posted 15 years ago #
  18. yuniar

    I see. So your host doesn't need SMTP then.

    change this line:

    define('USE_SMTP',true);

    back to:

    define('USE_SMTP',false);

    Hmm.. is it possible for me to login to your MachForm admin panel instead of FTP? No?


    MachForm Founder

    Posted 15 years ago #
  19. adi
    Member

    do the forms work just like the code you send me or is there a big difference??

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

    is there maybe something that i didnt fill out for it to not show?

    Posted 15 years ago #
  20. adi
    Member

    New error that i get

    Warning: fsockopen() [function.fsockopen]: unable to connect to mail.mahalusa.com:25 (Connection timed out) in /home/*****/public_html/*****/store/machform/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/*****/public_html/*****/store/machform/lib/class.smtp.php:105) in /home/*****/public_html/*****/store/machform/embed.php on line 42

    Posted 15 years ago #

RSS feed for this topic

Reply »