Viewing 1 replies (of 1 total)
  • Thread Starter ruipdguerra

    (@ruipdguerra)

    This is what i am using to make this work.

    add_action( 'phpmailer_init', 'wpse8170_phpmailer_init' );
    function wpse8170_phpmailer_init( PHPMailer $phpmailer ) {
        $phpmailer->Host = 'your.smtp.server.here';
        $phpmailer->Port = 25; // could be different
        $phpmailer->Username = '[email protected]'; // if required
        $phpmailer->Password = 'yourpassword'; // if required
        $phpmailer->SMTPAuth = true; // if required
        // $phpmailer->SMTPSecure = 'ssl'; // enable if required, 'tls' is another possible value
    
        $phpmailer->IsSMTP();
    }

    Hope it helps 😉

Viewing 1 replies (of 1 total)

The topic ‘Change from email configuration’ is closed to new replies.