Guest User

Untitled

a guest
May 23rd, 2018
402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.87 KB | None | 0 0
  1. Server: send.smtp.com
  2. Port: 25
  3. Use encrypted protocol: No
  4. Authentication: requires username/password
  5.  
  6. SMTP -> FROM SERVER:
  7. SMTP -> FROM SERVER:
  8. SMTP -> ERROR: EHLO not accepted from server:
  9. SMTP -> FROM SERVER:
  10. SMTP -> ERROR: HELO not accepted from server:
  11. SMTP -> ERROR: AUTH not accepted from server:
  12.  
  13. object(SMTP)#35 (7) {
  14. ["SMTP_PORT"]=> int(25)
  15. ["CRLF"]=> string(2) " "
  16. ["do_debug"]=> bool(true)
  17. ["do_verp"]=> string(2) "on"
  18. ["smtp_conn":"SMTP":private]=> resource(474) of type (stream)
  19. ["error":"SMTP":private]=> array(3) {
  20. ["error"]=> string(29) "AUTH not accepted from server"
  21. ["smtp_code"]=> bool(false)
  22. ["smtp_msg"]=> bool(false)
  23. }
  24. ["helo_rply":"SMTP":private]=> NULL
  25. }
  26.  
  27. SMTP -> NOTICE: EOF caught while checking if connected
  28. SMTP -> FROM SERVER:
  29. SMTP -> FROM SERVER:
  30. SMTP -> ERROR: EHLO not accepted from server:
  31.  
  32. SMTP -> FROM SERVER:
  33. SMTP -> ERROR: HELO not accepted from server:
  34. SMTP -> ERROR: AUTH not accepted from server:
  35.  
  36. object(SMTP)#35 (7) {
  37. ["SMTP_PORT"]=> int(25)
  38. ["CRLF"]=> string(2) " "
  39. ["do_debug"]=> bool(true)
  40. ["do_verp"]=> string(2) "on"
  41. ["smtp_conn":"SMTP":private]=> resource(476) of type (stream)
  42. ["error":"SMTP":private]=> array(3) {
  43. ["error"]=> string(29) "AUTH not accepted from server"
  44. ["smtp_code"]=> bool(false)
  45. ["smtp_msg"]=> bool(false)
  46. }
  47. ["helo_rply":"SMTP":private]=> NULL
  48. }
  49.  
  50. SMTP -> NOTICE: EOF caught while checking if connected
  51.  
  52. # telnet send.smtp.com 25
  53. Trying 192.40.165.68
  54. Connected to send.smtp.com
  55. Escape character is '^]'
  56.  
  57. May 23 08:20:38 txapone sendmail[68217]: w4MHtNJF053686: to=<me@mydomain.com>, ctladdr=<apache@server.domain.local> (48/48), delay=18:25:15, xdelay=00:00:40, mailer=relay, pri=1740402, relay=send.smtp.com [192.40.165.69], dsn=4.0.0, stat=Deferred: Connection reset by send.smtp.com
  58. May 23 08:20:38 txapone sendmail[68217]: w4MHvv5c053871: to=<me@mydomain.com>, ctladdr=<apache@server.domain.local> (48/48), delay=18:22:40, xdelay=00:00:00, mailer=relay, pri=1740402, relay=send.smtp.com, dsn=4.0.0, stat=Deferred: Connection reset by send.smtp.com
  59. May 23 08:20:38 txapone sendmail[68217]: w4MHakO3053279: to=<me@mydomain.com>, ctladdr=<apache@server.domain.local> (48/48), delay=18:43:52, xdelay=00:00:00, mailer=relay, pri=1830402, relay=send.smtp.com, dsn=4.0.0, stat=Deferred: Connection reset by send.smtp.com
  60. May 23 08:20:38 txapone sendmail[68217]: w4MHcf5U053351: to=<me@mydomain.com>, ctladdr=<apache@server.domain.local> (48/48), delay=18:41:57, xdelay=00:00:00, mailer=relay, pri=1830402, relay=send.smtp.com, dsn=4.0.0, stat=Deferred: Connection reset by send.smtp.com
  61. May 23 08:20:38 txapone sendmail[68217]: w4MHmc4h053590: to=<me@mydomain.com>, ctladdr=<apache@server.domain.local> (48/48), delay=18:32:00, xdelay=00:00:00, mailer=relay, pri=1830402, relay=send.smtp.com, dsn=4.0.0, stat=Deferred: Connection reset by send.smtp.com
  62. May 23 08:22:46 txapone sendmail[68288]: w4NCMkVH068288: from=apache, size=121, class=0, nrcpts=1, msgid=<201805231222.w4NCMkVH068288@txapone.tframes.local>, relay=apache@localhost
  63. May 23 08:22:46 txapone sendmail[68289]: w4NCMk5M068289: from=<apache@server.domain.local>, size=402, class=0, nrcpts=1, msgid=<201805231222.w4NCMkVH068288@txapone.tframes.local>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
  64. May 23 08:22:46 txapone sendmail[68288]: w4NCMkVH068288: to=me@mydomain.com, ctladdr=apache (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30121, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (w4NCMk5M068289 Message accepted for delivery)
  65. May 23 08:23:27 txapone sendmail[68291]: w4NCMk5M068289: to=<me@mydomain.com>, ctladdr=<apache@server.domain.local> (48/48), delay=00:00:41, xdelay=00:00:41, mailer=relay, pri=120402, relay=send.smtp.com [192.40.165.68], dsn=4.0.0, stat=Deferred: Connection reset by send.smtp.com
  66.  
  67. <?php
  68. require("src/PHPMailer.php");
  69. require("src/SMTP.php");
  70. require("src/Exception.php");
  71. $mail = new PHPMailerPHPMailerPHPMailer();
  72. $mail->IsSMTP();
  73. $mail->Host = "send.smtp.com";
  74. $mail->SMTPAuth = true;
  75. $mail->Username = "webmaster@domain.com";
  76. $mail->Password = "pwd";
  77. $mail->Port = "25";
  78. $mail->From = "notification@domain.com";
  79. $mail->FromName = "Company";
  80. $mail->AddAddress("allisonc@domain.com", "Me");
  81. $mail->AddReplyTo("notification@domain.com", "Company");
  82. $mail->WordWrap = 50;
  83. $mail->IsHTML(false);
  84. $mail->Subject = "SMTP.com Test";
  85. $mail->Body = "SMTP.com Test Message!";
  86. $mail->Timeout = 30;
  87. $mail->SMTPDebug = 4;
  88. $mail->SMTPSecure = FALSE;
  89. $mail->SMTPAutoTLS = FALSE;
  90. if(!$mail->Send())
  91. {
  92. echo "Message could not be sent. <p>";
  93. echo "Mailer Error: " . $mail->ErrorInfo;
  94. var_dump($mail);
  95. //exit;
  96. }
  97. else
  98. {
  99. echo "Message has been sent";
  100. }
  101.  
  102.  
  103. echo "<hr>";
  104.  
  105. $success = mail('allisonc@domain.com', 'Test Mail function', 'Test Mail function');
  106. if (!$success) {
  107. echo "mail failed";
  108. $errorMessage = error_get_last()['message'];
  109. var_dump($errorMessage);
  110. }
  111. var_dump($success);
Add Comment
Please, Sign In to add comment