Appnitro Software Forums » MachForm

Mail( ) with authentication

(2 posts)
  • Started 1 month ago by anthonybest
  • Latest reply from yuniar

  1. anthonybest
    Member

    I am using Machform inside my company subnet and our mail server requires authentication for SMTP. I have gotten the mailer to work with a standalone relay server to external email addresses, but I cannot get my exchange server to send the messages via smtp.

    Can anyone tell me what code i will need to change to add in the authentication information to allow the mail() command to pass the info to the server?

    Posted 1 month ago #
  2. Simply modify your config.php file, search for SMTP Settings section.

    define('USE_SMTP',false); 
    
    define('SMTP_HOST','localhost');
    define('SMTP_PORT',25);
    define('SMTP_AUTH',false);
    define('SMTP_USERNAME','YOUR_SMTP_USERNAME');
    define('SMTP_PASSWORD','YOUR_SMTP_PASSWORD');

    Put your username and password there.
    Also, make sure to set USE_SMTP and SMTP_AUTH to true.

    Posted 1 month ago #

RSS feed for this topic

Reply

You must log in to post.