Advertisement
Guest User

Untitled

a guest
Mar 19th, 2017
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.22 KB | None | 0 0
  1. $<?php
  2. date_default_timezone_set('Etc/UTC');
  3. require '../PHPMailerAutoload.php';
  4. $mail = new PHPMailer;
  5. $mail->isSMTP();
  6. $mail->SMTPDebug = 6;
  7. $mail->Debugoutput = 'html';
  8. $mail->Host = "smtp.gmail.com";
  9. $mail->Port = 587;
  10. $mail->SMTPAuth = true;
  11. $mail->SMTPSecure = "tls";
  12. $mail->Username = "sender@gmail.com";
  13. $mail->Password = "password";
  14. $mail->setFrom('sender@gmail.com', 'fsender lsender');
  15. $mail->addAddress('receiver@gmail.com', 'freceiver lreceiver');
  16. $mail->Subject = 'PHPMailer SMTP test';
  17. $mail->msgHTML(file_get_contents('mail.txt'), dirname(__FILE__));
  18. $mail->AltBody = 'This is a plain-text message body';
  19. if (!$mail->send()) {
  20. echo "Mailer Error: " . $mail->ErrorInfo;
  21. } else {
  22. echo "Message sent!";
  23. }
  24.  
  25. Connection: opening to smtp.gmail.com:587, timeout=300, options=array ()<br>
  26. Connection: opened<br>
  27. SMTP -> get_lines(): $data is ""<br>
  28. SMTP -> get_lines(): $str is "220-myaccount.arvixeshared.com ESMTP Exim 4.87 #1 Sun, 19 Mar 2017 00:57:26 -0400 "<br>
  29. SMTP -> get_lines(): $data is "220-myaccount.arvixeshared.com ESMTP Exim 4.87 #1 Sun, 19 Mar 2017 00:57:26 -0400 "<br>
  30. SMTP -> get_lines(): $str is "220-We do not authorize the use of this system to transport unsolicited, "<br>
  31. SMTP -> get_lines(): $data is "220-myaccount.arvixeshared.com ESMTP Exim 4.87 #1 Sun, 19 Mar 2017 00:57:26 -0400 220-We do not authorize the use of this system to transport unsolicited, "<br>
  32. SMTP -> get_lines(): $str is "220 and/or bulk e-mail."<br>
  33. SERVER -> CLIENT: 220-myaccount.arvixeshared.com ESMTP Exim 4.87 #1 Sun, 19 Mar 2017 00:57:26 -0400 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.<br>
  34. CLIENT -> SERVER: EHLO myaccount.arvixeshared.com<br>
  35. SMTP -> get_lines(): $data is ""<br>
  36. SMTP -> get_lines(): $str is "250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]"<br>
  37. SMTP -> get_lines(): $data is "250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]"<br>
  38. SMTP -> get_lines(): $str is "250-SIZE 52428800"<br>
  39. SMTP -> get_lines(): $data is "250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]250-SIZE 52428800"<br>
  40. SMTP -> get_lines(): $str is "250-8BITMIME"<br>
  41. SMTP -> get_lines(): $data is "250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]250-SIZE 52428800250-8BITMIME"<br>
  42. SMTP -> get_lines(): $str is "250-PIPELINING"<br>
  43. SMTP -> get_lines(): $data is "250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]250-SIZE 52428800250-8BITMIME250-PIPELINING"<br>
  44. SMTP -> get_lines(): $str is "250-AUTH PLAIN LOGIN"<br>
  45. SMTP -> get_lines(): $data is "250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]250-SIZE 52428800250-8BITMIME250-PIPELINING250-AUTH PLAIN LOGIN"<br>
  46. SMTP -> get_lines(): $str is "250-STARTTLS"<br>
  47. SMTP -> get_lines(): $data is "250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]250-SIZE 52428800250-8BITMIME250-PIPELINING250-AUTH PLAIN LOGIN250-STARTTLS"<br>
  48. SMTP -> get_lines(): $str is "250 HELP"<br>
  49. SERVER -> CLIENT: 250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]250-SIZE 52428800250-8BITMIME250-PIPELINING250-AUTH PLAIN LOGIN250-STARTTLS250 HELP<br>
  50. CLIENT -> SERVER: STARTTLS<br>
  51. SMTP -> get_lines(): $data is ""<br>
  52. SMTP -> get_lines(): $str is "220 TLS go ahead"<br>
  53. SERVER -> CLIENT: 220 TLS go ahead<br>
  54. CLIENT -> SERVER: EHLO myaccount.arvixeshared.com<br>
  55. SMTP -> get_lines(): $data is ""<br>
  56. SMTP -> get_lines(): $str is "250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]"<br>
  57. SMTP -> get_lines(): $data is "250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]"<br>
  58. SMTP -> get_lines(): $str is "250-SIZE 52428800"<br>
  59. SMTP -> get_lines(): $data is "250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]250-SIZE 52428800"<br>
  60. SMTP -> get_lines(): $str is "250-8BITMIME"<br>
  61. SMTP -> get_lines(): $data is "250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]250-SIZE 52428800250-8BITMIME"<br>
  62. SMTP -> get_lines(): $str is "250-PIPELINING"<br>
  63. SMTP -> get_lines(): $data is "250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]250-SIZE 52428800250-8BITMIME250-PIPELINING"<br>
  64. SMTP -> get_lines(): $str is "250-AUTH PLAIN LOGIN"<br>
  65. SMTP -> get_lines(): $data is "250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]250-SIZE 52428800250-8BITMIME250-PIPELINING250-AUTH PLAIN LOGIN"<br>
  66. SMTP -> get_lines(): $str is "250 HELP"<br>
  67. SERVER -> CLIENT: 250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]250-SIZE 52428800250-8BITMIME250-PIPELINING250-AUTH PLAIN LOGIN250 HELP<br>
  68. Auth method requested: UNKNOWN<br>
  69. Auth methods available on the server: PLAIN,LOGIN<br>
  70. Auth method selected: LOGIN<br>
  71. CLIENT -> SERVER: AUTH LOGIN<br>
  72. SMTP -> get_lines(): $data is ""<br>
  73. SMTP -> get_lines(): $str is "334 XXXxxxxxxXXx"<br>
  74. SERVER -> CLIENT: 334 XXXxxxxxxXXx<br>
  75. CLIENT -> SERVER: XXxxxxXxXXxxXXXxXXxxXXxxXxXxxX==<br>
  76. SMTP -> get_lines(): $data is ""<br>
  77. SMTP -> get_lines(): $str is "334 XXXxxxxxxxXx"<br>
  78. SERVER -> CLIENT: 334 XXXxxxxxxxXx<br>
  79. CLIENT -> SERVER: YW5pczE5OTY=<br>
  80. SMTP -> get_lines(): $data is ""<br>
  81. SMTP -> get_lines(): $str is "535 Incorrect authentication data"<br>
  82. SERVER -> CLIENT: 535 Incorrect authentication data<br>
  83. SMTP ERROR: Password command failed: 535 Incorrect authentication data<br>
  84. SMTP Error: Could not authenticate.<br>
  85. CLIENT -> SERVER: QUIT<br>
  86. SMTP -> get_lines(): $data is ""<br>
  87. SMTP -> get_lines(): $str is "221 myaccount.arvixeshared.com closing connection"<br>
  88. SERVER -> CLIENT: 221 myaccount.arvixeshared.com closing connection<br>
  89. Connection: closed<br>
  90. SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting<br>
  91. Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
  92.  
  93. SERVER -> CLIENT: 220-myaccount.arvixeshared.com ESMTP Exim 4.87 #1 Sun, 19 Mar 2017 00:57:26 -0400 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.<br>
  94. CLIENT -> SERVER: EHLO myaccount.arvixeshared.com<br>
  95.  
  96. SERVER -> CLIENT: 220 smtp.gmail.com ESMTP x29xx4280503xxx.16 - gsmtp<br>
  97. CLIENT -> SERVER: EHLO myaccount.hawkhost.com<br>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement