Gmail ilə smtp qoşulma
Salam, localhostda phpmailer ilə Gmail smtp əlaqəsi qura bilmirəm.
- login və parol düzgün yazıram.
- öz serverimin mail accountu ilə yazanda smtp işləyir amma gmail işləmir.
- portu həm 587 həm də 465 yazıb yoxlamışam.
xəta mesajı:
CLIENT -> SERVER: EHLO localhost
CLIENT -> SERVER: AUTH LOGIN
CLIENT -> SERVER: c2FrYW11a2E5MkBnbWFpbC5jb20=
CLIENT -> SERVER: bWlyaUBnbWFpbEA1ODEwMDAwJw==
SMTP ERROR: Password command failed: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 https://support.google.com/mail/answer/14257 b207sm32701919wmb.0 - gsmtp
SMTP Error: Could not authenticate.
CLIENT -> SERVER: QUIT
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
istifadə etdiyim kod:
https://github.com/PHPMailer/PHPMailer/blob/master/examples/gmail.phps
google account icazələrini də vermişəm bu linklərdən
https://www.google.com/settings/u/1/security/lesssecureapps
https://accounts.google.com/b/0/DisplayUnlockCaptcha
https://security.google.com/settings/security/activity?hl=en&pli=1