Guest User

Untitled

a guest
Oct 20th, 2017
470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. [sendmail]
  2.  
  3. smtp_server=smtp.gmail.com
  4. smtp_port=587
  5. smtp_ssl=auto
  6.  
  7. error_logfile=error.log
  8. debug_logfile=debug.log
  9.  
  10. auth_username=stefan.cv5@gmail.com
  11. auth_password=XXXXXXX
  12.  
  13. pop3_server=
  14. pop3_username=
  15. pop3_password=
  16.  
  17. force_sender=stefan.cv5@gmail.com
  18.  
  19. force_recipient=stefan.cv5@gmail.com
  20.  
  21. hostname=
  22.  
  23. [mail function]
  24. SMTP = smtp.gmail.com
  25. smtp_port = 587
  26. sendmail_from = stefan.cv5@gmail.com
  27. sendmail_path = ""C:wampsendmailsendmail.exe" -t"
  28.  
  29. <?php
  30. ini_set( 'display_errors', 1 );
  31. error_reporting( E_ALL );
  32. $from = "stefan.cv5@gmail.com";
  33. $to = "stefan.cv5@gmail.com";
  34. $subject = "PHP Mail Test script";
  35. $message = "This is a test to check the PHP Mail functionality";
  36. $headers = "From:" . $from;
  37. mail($to,$subject,$message, $headers);
  38. echo "Test email sent";
  39. ?>
  40.  
  41. 17/10/20 12:35:57 ** --- MESSAGE BEGIN ---
  42. 17/10/20 12:35:57 ** To: stefan.cv5@gmail.com
  43. 17/10/20 12:35:57 ** Subject: PHP Mail Test script
  44. 17/10/20 12:35:57 ** X-PHP-Originating-Script: 0:mail.php
  45. 17/10/20 12:35:57 ** From:stefan.cv5@gmail.com
  46. 17/10/20 12:35:57 **
  47. 17/10/20 12:35:57 ** This is a test to check the PHP Mail functionality
  48. 17/10/20 12:35:57 ** --- MESSAGE END ---
  49. 17/10/20 12:35:57 ** Connecting to smtp.gmail.com:587
  50. 17/10/20 12:36:07 ** Disconnected.
  51. 17/10/20 12:36:07 ** Disconnected.
  52. 17/10/20 12:36:07 ** Disconnected.
  53. 17/10/20 12:36:07 ** Disconnected.
  54. 17/10/20 12:36:07 ** Connect timed out.
Add Comment
Please, Sign In to add comment