WordPress on xampp localhost fails to send email

  email, php, plugins, wordpress, xampp

WordPress website is set on localhost via xampp. I’ve made contact form but I’m not recieving emails from it.
I have installed WP mail SMTP plugin and changed the mailer to "other SMTP" with TLS encryption, port 587, SMTP host: smtp.gmail.com and Gmail username and password. After sending test email it displays:

"There was a problem while sending the test email. Could not authenticate your SMTP account. This means we were able to connect to your SMTP host, but were not able to proceed using the email/password in the settings."

I’ve double checked everything and I’m not recieving emails as spam either.

Source: Ask PHP

LEAVE A COMMENT