Advertisement
Guest User

Untitled

a guest
Sep 16th, 2015
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. $to = em1@gmail.com';
  2. $subject = 'Testing sendmail.exe';
  3. $message = 'Hi, you just received an email using sendmail!';
  4. $headers = 'From: em2@gmail.com' . "rn" .
  5. 'MIME-Version: 1.0' . "rn" .
  6. 'Content-type: text/html; charset=utf-8';
  7.  
  8. mail($to, $subject, $message, $headers);
  9.  
  10. if(mail($to, $subject, $message, $headers))
  11. echo "Email sent";
  12. else
  13. echo "Email sending failed";
  14.  
  15. ; For Win32 only.
  16. ;SMTP = localhost
  17. ;smtp_port = 25
  18.  
  19. ; For Win32 only.
  20. ;sendmail_from =
  21. ; -i
  22. sendmail_path = "D:Serverbinwampsendmailsendmail.exe -t"
  23. ;mail.force_extra_parameters =
  24. mail.add_x_header = On
  25.  
  26. 15.07.08 09:10:31 : Connect timed out.
  27.  
  28. 15.07.08 09:10:21 ** --- MESSAGE BEGIN ---
  29. 15.07.08 09:10:21 ** To: em1@gmail.com
  30. 15.07.08 09:10:21 ** Subject: Testing sendmail.exe
  31. 15.07.08 09:10:21 ** X-PHP-Originating-Script: 0:test.php
  32. 15.07.08 09:10:21 ** From: em2@gmail.com
  33. 15.07.08 09:10:21 ** MIME-Version: 1.0
  34. 15.07.08 09:10:21 ** Content-type: text/html; charset=utf-8
  35. 15.07.08 09:10:21 **
  36. 15.07.08 09:10:21 ** Hi, you just received an email using sendmail!
  37. 15.07.08 09:10:21 ** --- MESSAGE END ---
  38. 15.07.08 09:10:21 ** Connecting to smtp.gamil.com:25
  39. 15.07.08 09:10:31 ** Disconnected.
  40. 15.07.08 09:10:31 ** Disconnected.
  41. 15.07.08 09:10:31 ** Disconnected.
  42. 15.07.08 09:10:31 ** Disconnected.
  43. 15.07.08 09:10:31 ** Connect timed out.
  44.  
  45. exception class : EIdConnectTimeout <p>
  46. exception message : Connect timed out. <p>
  47.  
  48. main thread ($2740): <p>
  49. 0041fa42 +000e sendmail.exe IdException 112 +1 EIdException.Toss <p>
  50. 0044092e +014e sendmail.exe IdIOHandlerStack 279 +38 DoConnectTimeout <p>
  51. 00440b4c +01d8 sendmail.exe IdIOHandlerStack 346 +55 TIdIOHandlerStack.ConnectClient <p>
  52. 00444a9f +0063 sendmail.exe IdIOHandlerSocket 335 +13 TIdIOHandlerSocket.Open <p>
  53. 0044157d +0235 sendmail.exe IdTCPClient 318 +53 TIdTCPClientCustom.Connect <p>
  54. 00445cc8 +00a4 sendmail.exe IdExplicitTLSClientServerBase 257 +23 TIdExplicitTLSClient.Connect <p>
  55. 0045ab7b +0017 sendmail.exe IdSMTP 373 +2 TIdSMTP.Connect <p>
  56. 004b5f14 +1060 sendmail.exe sendmail 808 +326 initialization
  57. 76533378 +0010 kernel32.dll <p> BaseThreadInitThunk <p>
  58.  
  59. thread $2570: <p>
  60. 774b01a2 +0e ntdll.dll NtWaitForMultipleObjects <p>
  61. 76533378 +10 kernel32.dll BaseThreadInitThunk <p>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement