How to send mail using PHP and wamp/xamp? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to send mail using PHP and wamp/xamp?

ERROR: Warning: mail(): Failed to connect to mailserver at &quot;localhost&quot; port 25, verify your &quot;SMTP&quot; and &quot;smtp_port&quot; 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?

22nd Nov 2020, 11:29 AM
Ayush Dubey
Ayush Dubey - avatar
1 Answer
+ 2
Download latest version and setup marcury mail and do the stuff that he does https://youtu.be/zO2p3uX9poY
25th Nov 2020, 7:40 PM
Julian Bents
Julian Bents - avatar