php - PhpMailer SMTP ERROR Username command failed: 535 5.7.8 -
phpmailer 5.2 keeps telling me, cannot send out e-mail.
i know credentials proper (firefox checks e-mails, laravel sends out emails).
which setting/command missing?
php code:
$mail->issmtp(); $mail->host = ******; $mail->smtpauth = true; $mail->username = ******; $mail->password = ******; $mail->smtpsecure = false; $mail->port = 25; $mail->smtpdebug = 3; $mail->smtpoptions = [ 'ssl' => [ 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true ] ];
smtp debug:
2017-03-22 19:06:14 connection: opening *************:25, timeout=300, options=array ( 'ssl' => array ( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true, ), ) 2017-03-22 19:06:14 connection: opened 2017-03-22 19:06:14 server -> client: 220 ************* esmtp postfix 2017-03-22 19:06:14 client -> server: ehlo ******* 2017-03-22 19:06:14 server -> client: 250-************* 250-pipelining 250-size 15728640 250-etrn 250-starttls 250-auth plain login cram-md5 250-auth=plain login cram-md5 250-enhancedstatuscodes 250-8bitmime 250 dsn 2017-03-22 19:06:14 client -> server: starttls 2017-03-22 19:06:14 server -> client: 220 2.0.0 ready start tls 2017-03-22 19:06:14 client -> server: ehlo ******* 2017-03-22 19:06:14 server -> client: 250-************* 250-pipelining 250-size 15728640 250-etrn 250-auth plain login cram-md5 250-auth=plain login cram-md5 250-enhancedstatuscodes 250-8bitmime 250 dsn 2017-03-22 19:06:14 client -> server: auth cram-md5 2017-03-22 19:06:14 server -> client: 334 *********************************** 2017-03-22 19:06:14 client -> server: ************************************** 2017-03-22 19:06:16 server -> client: 535 5.7.8 error: authentication failed: *********************************** 2017-03-22 19:06:16 smtp error: username command failed: 535 5.7.8 error: authentication failed: *********************************** 2017-03-22 19:06:16 smtp error: not authenticate. 2017-03-22 19:06:16 client -> server: quit 2017-03-22 19:06:16 server -> client: 221 2.0.0 bye 2017-03-22 19:06:16 connection: closed 2017-03-22 19:06:16 smtp connect() failed. https://github.com/phpmailer/phpmailer/wiki/troubleshooting
authtype should solve problem:
$mail->authtype = 'login';
other options include: plain, login, ntlm, cram-md5, xoauth2
https://phpmailer.github.io/phpmailer/classes/smtp.html#method_authenticate
Hi Clients!
ReplyDeleteWe have the fresh and valid USA ssn leads and dead fullz
99% connectivity with quality
*If you have any trust issue before any deal you may get few to test
*Every leads are well checked and available 24 hours
*Fully cooperate with clients
*Format of Fullz/leads/profiles
°First & last Name
°SSN
°DOB
°(DRIVING LICENSE NUMBER)
°ADDRESS
(ZIP CODE,STATE,CITY)
°PHONE NUMBER
°EMAIL ADDRESS
°REFERENCE DETAILS
°BANK ACCOUNT DETAILS
****Contact Me****
*ICQ :748957107
*Telegram :@James307
*Gmail :taimoorh944@gmail.com
lead cost $2 for each
Price can be negotiable if order in bulk
*Contact soon!
*Hope a long term deal
*Thank You