February 14th, 2013, 11:40 AM
Smtp_port setting in php.ini
i'm using XAMPP.1.7.7 server to test my php file and i'm having the following error while testing a php file. Can someone tell me how to configure "SMTP" and "smtp_port" setting in php.ini or use ini_set()
Warning: mail() [function.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 C:\xampp\htdocs\TestsPHP\Chap4\RE4-2-ContactForm.php on line 115
February 14th, 2013, 11:47 AM
you need a mailserver to send mails.
Simply use the one provided by XAMPP (Mercury). You need to configure a few things and then start the server in the XAMPP control panel.