email - PHPMAILER mail sent but not received -


i trying use phpmailer i'm having problem. test code:

<?php  require './phpmailer/phpmailerautoload.php';  $mail = new phpmailer;  $mail->issmtp();  $mail->smtpdebug = 4;  $mail->debugoutput = 'html';  $mail->host = "localhost"; //set smtp port number - 25, 465 or 587 $mail->port = 25;  $mail->smtpauth = true;  $mail->username = "donotreply@myservermail";  $mail->password = "mypassword";  $mail->setfrom('donotreply@myservermail', 'mail test');  $mail->addreplyto('myemail@live.com', 'first last');  $mail->addaddress('donotreply@myservermail', 'test mail');  $mail->subject = 'phpmailer smtp test';   $mail->msg = 'hello there test . ';  $mail->body = 'this plain-text message body';  if (!$mail->send()) {     echo "mailer error: " . $mail->errorinfo; } else {     echo "message sent!"; }  ?> 

and here result browser, , see no error there:

connection: opening localhost:25, timeout=300, options=array () connection: opened smtp -> get_lines(): $data "" smtp -> get_lines(): $str "220 localhost esmtp" smtp -> get_lines(): $data "220 localhost esmtp" server -> client: 220 localhost esmtp client -> server: ehlo my_server_name smtp -> get_lines(): $data "" smtp -> get_lines(): $str "250-localhost" smtp -> get_lines(): $data "250-localhost" smtp -> get_lines(): $data "250-localhost" smtp -> get_lines(): $str "250-size 20480000" smtp -> get_lines(): $data "250-localhost250-size 20480000" smtp -> get_lines(): $data "250-localhost250-size 20480000" smtp -> get_lines(): $str "250-auth login" smtp -> get_lines(): $data "250-localhost250-size 20480000250-auth login" smtp -> get_lines(): $data "250-localhost250-size 20480000250-auth login" smtp -> get_lines(): $str "250 help" smtp -> get_lines(): $data "250-localhost250-size 20480000250-auth login250 help" server -> client: 250-localhost250-size 20480000250-auth login250 auth method requested: unknown auth methods available on server: login auth method selected: login client -> server: auth login smtp -> get_lines(): $data "" smtp -> get_lines(): $str "334 some_encrypted_string" smtp -> get_lines(): $data "334 some_encrypted_string" server -> client: 334 some_encrypted_string client -> server: some_encrypted_string smtp -> get_lines(): $data "" smtp -> get_lines(): $str "334 some_encrypted_string" smtp -> get_lines(): $data "334 some_encrypted_string" server -> client: 334 some_encrypted_string client -> server: some_encrypted_string smtp -> get_lines(): $data "" smtp -> get_lines(): $str "235 authenticated." smtp -> get_lines(): $data "235 authenticated." server -> client: 235 authenticated. client -> server: mail from:<donotreply@my_server_mail> smtp -> get_lines(): $data "" smtp -> get_lines(): $str "250 ok" smtp -> get_lines(): $data "250 ok" server -> client: 250 ok client -> server: rcpt to:<my_email@yahoo.com> smtp -> get_lines(): $data "" smtp -> get_lines(): $str "250 ok" smtp -> get_lines(): $data "250 ok" server -> client: 250 ok client -> server: data smtp -> get_lines(): $data "" smtp -> get_lines(): $str "354 ok, send." smtp -> get_lines(): $data "354 ok, send." server -> client: 354 ok, send. client -> server: date: thu, 14 may 2015 10:40:00 +0200 client -> server: to: my_email yahoo <my_email@yahoo.com> client -> server: from: mail_server test <donotreply@my_server_mail> client -> server: reply-to: my_email live <my_email@live.com> client -> server: subject: phpmailer smtp test client -> server: message-id: <some_encryped_string@my_server_name> client -> server: x-priority: 3 client -> server: x-mailer: phpmailer 5.2.10 (https://github.com/phpmailer/phpmailer/) client -> server: mime-version: 1.0 client -> server: content-type: text/plain; charset=iso-8859-1 client -> server: content-transfer-encoding: 8bit client -> server: client -> server: plain-text message body client -> server: client -> server: . smtp -> get_lines(): $data "" smtp -> get_lines(): $str "250 queued (0.000 seconds)" smtp -> get_lines(): $data "250 queued (0.000 seconds)" server -> client: 250 queued (0.000 seconds) client -> server: quit smtp -> get_lines(): $data "" smtp -> get_lines(): $str "221 goodbye" smtp -> get_lines(): $data "221 goodbye" server -> client: 221 goodbye connection: closed message sent! 

i've tried test different emails, on yahoo, gmail, etc, still same. checked spam emails, couple hours.
idea?

it is succeeding - in delivering localhost, you're asking to. happens after entirely outside phpmailer's control. need @ local mail server's log see happens after that, looks it's not getting further that, need @ mail server's config.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -