Can't send email using mail() in php despite configuring php.ini and sendmail.ini. What is the perfect method?
ERROR: Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in <FILE ADDRESS> on line 8 I'm using wamp server. I have downloaded the sendmail.zip for sending email using PHP and wamp server. I have also configured the php.ini file and the sendmail.ini file but no difference. Always getting the same error when running the email script through wamp. What is the perfect method to send emails using wamp and PHP? And what is possibly going wrong with my case?
Yes. I'm using gmail service
I turned everything which I knew. Kindly mention all that is necessary for it to function.
Are you sending your mail using gmail service ?
Did you turn on all the necessary stuffs ? access to less secure apps in your Google account ?