PHP mail function is very important one in project development. When we go to use and test this mail(), it would be working great in web servers but in localhost we may face more problems, ok we will test, how to solve this,
here we go,
First in your appache installation folder, check your php folder and inside open php.ini file.
search for a word (sendmail_path) and then you can see like below line code,
;sendmail_path = “”E:xamppsendmailsendmail.exe” -t”
make a uncomment that file like below
sendmail_path = “”E:xamppsendmailsendmail.exe” -t”
and you can see one more file
dont uncomment the above one, let it be same like this
and then go to sendmail folder in your xampp path and open that folder
inside open that sendmail.ini file
here we use Gmail email configuration for our setup.
in smtp_server set up make it like below
View original post 37 more words