This works for me. I am running xampp windows.
I changed this part a bit
php folder go to php.ini find on line 1142 uncomment ;sendmail_path = "\"C:\Xampp\sendmail\sendmail.exe\" -t"
to
sendmail_path = "\"C:\Xampp\sendmail\sendmail.exe\" -t" sendmail folder: sendmail.ini file
Add your details
line 14: smtp_server=gmail.com hostserver
line 18: smtp_port=465 or 587 and on line 46 and 47 you need to add a username and
passwordauth_username= ***@***.com //change to yours auth_password= ****** ////change to yours
And I changed the gmail setting because I use gmail.
Change your settings to allow less secure applications to access your account. We do not recommend this option because it may make it easier for someone to enter your account.
If you want to allow access anyway, follow these steps:
- Go to the "Less secure apps" section of "My Account."
- Next to Access for less secure applications, select Enable.
(Note for Google Apps users: this option is hidden if your administrator has blocked access to your secure account less.)
If you still cannot log in to your account, the error is "invalid password"
source share