Wordpress + SMTP from Exchange Server cannont authentificate -


i'm having hard time trying figure out how resolve problem. when send mail wp_mail(), authentification error but, if try same configuration blank phpmailer (outside of wordpress), work!

here setup in wordpress (functions.php)

    if(!function_exists('phpmailer_smtp')){       add_action( 'phpmailer_init', 'phpmailer_smtp' );       function phpmailer_smtp( $phpmailer ) {          $phpmailer->issmtp();         $phpmailer->host = 'xxxx';         $phpmailer->smtpauth = true; // force use username , password authenticate         $phpmailer->username = 'xxxx';         $phpmailer->password = 'xxxx';         $phpmailer->port = 25;          $phpmailer->smtpdebug = 2;         $phpmailer->setfrom('admin@xxxx.com','xxxx');     } } 

output:

2017-04-07 15:22:59 server -> client: 220 ************************************************************************************************ 2017-04-07 15:22:59 client -> server: ehlo www.xxxx.com 2017-04-07 15:22:59 server -> client: 250-skyex02.xxxx.montreal hello [199.115.127.83]                                       250-size 37748736                                       250-pipelining                                       250-dsn                                       250-enhancedstatuscodes                                       250-xxxxxxxa                                       250-xxxxxxxxxxxxxb                                       250-auth ntlm                                       250-xxxxxxxxxxxxxxxxxc                                       250-8bitmime                                       250-binarymime                                       250-xxxxxxxd                                       250 xxxxe 2017-04-07 15:22:59 smtp error: not authenticate. 2017-04-07 15:22:59 client -> server: quit 2017-04-07 15:22:59 server -> client: 221 2.0.0 service closing transmission channel 2017-04-07 15:22:59 smtp error: not authenticate. 


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -