PHPMailer\PHPMailer\Exception: SMTP Error: Could not authenticate. in C:\xampp\htdocs\schoolRegistration\vendor\phpmailer\phpmailer\src\PHPMailer.php:2212 Stack trace: #0 C:\xampp\htdocs\schoolRegistration\vendor\phpmailer\phpmailer\src\PHPMailer.php(2019): PHPMailer\PHPMailer\PHPMailer->smtpConnect(Array) #1 C:\xampp\htdocs\schoolRegistration\vendor\phpmailer\phpmailer\src\PHPMailer.php(1678): PHPMailer\PHPMailer\PHPMailer->smtpSend('Date: Thu, 8 De...', 'Please click He...') #2 C:\xampp\htdocs\schoolRegistration\vendor\phpmailer\phpmailer\src\PHPMailer.php(1516): PHPMailer\PHPMailer\PHPMailer->postSend() #3 C:\xampp\htdocs\schoolRegistration\passChange\index.php(51): PHPMailer\PHPMailer\PHPMailer->send() #4 {main} thrown in C:\xampp\htdocs\schoolRegistration\vendor\phpmailer\phpmailer\src\PHPMailer.php on line 2212
Because it can't authenticate
how can i authenticate it? i am using php mailer for forget password functionality.
Use valid smtp details, am hoping you read their documentation first instead of jumping into sending mails
Обсуждают сегодня