Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $<?php
- date_default_timezone_set('Etc/UTC');
- require '../PHPMailerAutoload.php';
- $mail = new PHPMailer;
- $mail->isSMTP();
- $mail->SMTPDebug = 6;
- $mail->Debugoutput = 'html';
- $mail->Host = "smtp.gmail.com";
- $mail->Port = 587;
- $mail->SMTPAuth = true;
- $mail->SMTPSecure = "tls";
- $mail->Username = "sender@gmail.com";
- $mail->Password = "password";
- $mail->setFrom('sender@gmail.com', 'fsender lsender');
- $mail->addAddress('receiver@gmail.com', 'freceiver lreceiver');
- $mail->Subject = 'PHPMailer SMTP test';
- $mail->msgHTML(file_get_contents('mail.txt'), dirname(__FILE__));
- $mail->AltBody = 'This is a plain-text message body';
- if (!$mail->send()) {
- echo "Mailer Error: " . $mail->ErrorInfo;
- } else {
- echo "Message sent!";
- }
- Connection: opening to smtp.gmail.com:587, timeout=300, options=array ()<br>
- Connection: opened<br>
- SMTP -> get_lines(): $data is ""<br>
- SMTP -> get_lines(): $str is "220-myaccount.arvixeshared.com ESMTP Exim 4.87 #1 Sun, 19 Mar 2017 00:57:26 -0400 "<br>
- SMTP -> get_lines(): $data is "220-myaccount.arvixeshared.com ESMTP Exim 4.87 #1 Sun, 19 Mar 2017 00:57:26 -0400 "<br>
- SMTP -> get_lines(): $str is "220-We do not authorize the use of this system to transport unsolicited, "<br>
- 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>
- SMTP -> get_lines(): $str is "220 and/or bulk e-mail."<br>
- 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>
- CLIENT -> SERVER: EHLO myaccount.arvixeshared.com<br>
- SMTP -> get_lines(): $data is ""<br>
- SMTP -> get_lines(): $str is "250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]"<br>
- SMTP -> get_lines(): $data is "250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]"<br>
- SMTP -> get_lines(): $str is "250-SIZE 52428800"<br>
- SMTP -> get_lines(): $data is "250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]250-SIZE 52428800"<br>
- SMTP -> get_lines(): $str is "250-8BITMIME"<br>
- SMTP -> get_lines(): $data is "250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]250-SIZE 52428800250-8BITMIME"<br>
- SMTP -> get_lines(): $str is "250-PIPELINING"<br>
- SMTP -> get_lines(): $data is "250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]250-SIZE 52428800250-8BITMIME250-PIPELINING"<br>
- SMTP -> get_lines(): $str is "250-AUTH PLAIN LOGIN"<br>
- 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>
- SMTP -> get_lines(): $str is "250-STARTTLS"<br>
- 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>
- SMTP -> get_lines(): $str is "250 HELP"<br>
- 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>
- CLIENT -> SERVER: STARTTLS<br>
- SMTP -> get_lines(): $data is ""<br>
- SMTP -> get_lines(): $str is "220 TLS go ahead"<br>
- SERVER -> CLIENT: 220 TLS go ahead<br>
- CLIENT -> SERVER: EHLO myaccount.arvixeshared.com<br>
- SMTP -> get_lines(): $data is ""<br>
- SMTP -> get_lines(): $str is "250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]"<br>
- SMTP -> get_lines(): $data is "250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]"<br>
- SMTP -> get_lines(): $str is "250-SIZE 52428800"<br>
- SMTP -> get_lines(): $data is "250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]250-SIZE 52428800"<br>
- SMTP -> get_lines(): $str is "250-8BITMIME"<br>
- SMTP -> get_lines(): $data is "250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]250-SIZE 52428800250-8BITMIME"<br>
- SMTP -> get_lines(): $str is "250-PIPELINING"<br>
- SMTP -> get_lines(): $data is "250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]250-SIZE 52428800250-8BITMIME250-PIPELINING"<br>
- SMTP -> get_lines(): $str is "250-AUTH PLAIN LOGIN"<br>
- 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>
- SMTP -> get_lines(): $str is "250 HELP"<br>
- SERVER -> CLIENT: 250-myaccount.arvixeshared.com Hello myaccount.arvixeshared.com [xx.xx.xx.x]250-SIZE 52428800250-8BITMIME250-PIPELINING250-AUTH PLAIN LOGIN250 HELP<br>
- Auth method requested: UNKNOWN<br>
- Auth methods available on the server: PLAIN,LOGIN<br>
- Auth method selected: LOGIN<br>
- CLIENT -> SERVER: AUTH LOGIN<br>
- SMTP -> get_lines(): $data is ""<br>
- SMTP -> get_lines(): $str is "334 XXXxxxxxxXXx"<br>
- SERVER -> CLIENT: 334 XXXxxxxxxXXx<br>
- CLIENT -> SERVER: XXxxxxXxXXxxXXXxXXxxXXxxXxXxxX==<br>
- SMTP -> get_lines(): $data is ""<br>
- SMTP -> get_lines(): $str is "334 XXXxxxxxxxXx"<br>
- SERVER -> CLIENT: 334 XXXxxxxxxxXx<br>
- CLIENT -> SERVER: YW5pczE5OTY=<br>
- SMTP -> get_lines(): $data is ""<br>
- SMTP -> get_lines(): $str is "535 Incorrect authentication data"<br>
- SERVER -> CLIENT: 535 Incorrect authentication data<br>
- SMTP ERROR: Password command failed: 535 Incorrect authentication data<br>
- SMTP Error: Could not authenticate.<br>
- CLIENT -> SERVER: QUIT<br>
- SMTP -> get_lines(): $data is ""<br>
- SMTP -> get_lines(): $str is "221 myaccount.arvixeshared.com closing connection"<br>
- SERVER -> CLIENT: 221 myaccount.arvixeshared.com closing connection<br>
- Connection: closed<br>
- SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting<br>
- Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
- 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>
- CLIENT -> SERVER: EHLO myaccount.arvixeshared.com<br>
- SERVER -> CLIENT: 220 smtp.gmail.com ESMTP x29xx4280503xxx.16 - gsmtp<br>
- CLIENT -> SERVER: EHLO myaccount.hawkhost.com<br>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement