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

Mail( ) with authentication


  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 16 years ago #
  2. yuniar

    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.


    MachForm Founder

    Posted 16 years ago #

RSS feed for this topic

Reply