Appnitro Software Forums » MachForm 2

Can't get mails to send.


  1. I'm having real problems getting email to work from MachForm.

    My webhosts say I should use mail.mydomain.co.uk for the SMTP server, port 25
    with username & password for an existing email account - all of which I've done and changed to try and get working but I still can't get a mail to send from a form submission... Here's the relevant bits of my config.php file (with personal data removed)...

    define('USE_SMTP',true); //set this to 'true' to use SMTP
    define('SMTP_HOST','mail.domainremoved.co.uk');
    define('SMTP_PORT',25);
    define('SMTP_AUTH',true); //if your SMTP require authentification, set this to 'true'
    define('SMTP_USERNAME','dave@domainremoved.co.uk');
    define('SMTP_PASSWORD','password_goes_here');
    define('SMTP_SECURE',false); //set this to 'true' if your server is using secure SMTP (TLS/SSL)

    If I make a change, do I have to run anything to allow MachForm to use the new settings or is it looking at config.php each time a setting is required?

    Posted 11 months ago #
  2. Although your host has advised of the details, they may not be entirely correct. You may need to use another port other than 25 e.g.outgoing server with port 587 or something else. Some Hosts / ISP's may block port 25 for whatever reason. Does your host give you an alternative port number if 25 doesn't work?

    Also check the username, it may not be just the email address; it could be like you+yourdomain.com with the '+' instead of '@', or else just the first part of the email address, so if it is JBloggs@domain.com, the username could be just 'JBloggs'.

    Lastly:

    Can you try the PHP sendmail option instead of SMTP?

    Can you try sending/receiving a normal email message to that address, with the email account detail as you specified, does it send and receive normal email OK? If not, then it is not just the problem in the script config.php.

    One final thing, which maybe rather obvious but could be overlooked: username and password are usually case-sensitive, so make sure you use the correct case of lower/upper case letters as you first created the password.

    Posted 11 months ago #

RSS feed for this topic

Reply