Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [sendmail]
- smtp_server=smtp.gmail.com
- smtp_port=587
- smtp_ssl=auto
- error_logfile=error.log
- debug_logfile=debug.log
- auth_username=stefan.cv5@gmail.com
- auth_password=XXXXXXX
- pop3_server=
- pop3_username=
- pop3_password=
- force_sender=stefan.cv5@gmail.com
- force_recipient=stefan.cv5@gmail.com
- hostname=
- [mail function]
- SMTP = smtp.gmail.com
- smtp_port = 587
- sendmail_from = stefan.cv5@gmail.com
- sendmail_path = ""C:wampsendmailsendmail.exe" -t"
- <?php
- ini_set( 'display_errors', 1 );
- error_reporting( E_ALL );
- $from = "stefan.cv5@gmail.com";
- $to = "stefan.cv5@gmail.com";
- $subject = "PHP Mail Test script";
- $message = "This is a test to check the PHP Mail functionality";
- $headers = "From:" . $from;
- mail($to,$subject,$message, $headers);
- echo "Test email sent";
- ?>
- 17/10/20 12:35:57 ** --- MESSAGE BEGIN ---
- 17/10/20 12:35:57 ** To: stefan.cv5@gmail.com
- 17/10/20 12:35:57 ** Subject: PHP Mail Test script
- 17/10/20 12:35:57 ** X-PHP-Originating-Script: 0:mail.php
- 17/10/20 12:35:57 ** From:stefan.cv5@gmail.com
- 17/10/20 12:35:57 **
- 17/10/20 12:35:57 ** This is a test to check the PHP Mail functionality
- 17/10/20 12:35:57 ** --- MESSAGE END ---
- 17/10/20 12:35:57 ** Connecting to smtp.gmail.com:587
- 17/10/20 12:36:07 ** Disconnected.
- 17/10/20 12:36:07 ** Disconnected.
- 17/10/20 12:36:07 ** Disconnected.
- 17/10/20 12:36:07 ** Disconnected.
- 17/10/20 12:36:07 ** Connect timed out.
Add Comment
Please, Sign In to add comment