MegR Posted June 12, 2008 Share Posted June 12, 2008 Hi Everyone, I am new to PHP ....please help me. What does the following mean?? ... i am trying to create a contact page and send an email with the details to an email id. 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\examples\send.php on line 6 Thanks a ton!! MegR Quote Link to comment https://forums.phpfreaks.com/topic/109920-what-does-this-error-mean/ Share on other sites More sharing options...
conker87 Posted June 12, 2008 Share Posted June 12, 2008 It means you've got some sort of problem, says my nosy friend. But seriously, looks like your SMTP configuration isn't configured correctly. Quote Link to comment https://forums.phpfreaks.com/topic/109920-what-does-this-error-mean/#findComment-564037 Share on other sites More sharing options...
ober Posted June 12, 2008 Share Posted June 12, 2008 If you're using a mail server in a local environment (non-hosted solution), you need to modify the php.ini file to point to a mail server that would be running on the local environment. Did you install LAMP/XAMP/etc? Quote Link to comment https://forums.phpfreaks.com/topic/109920-what-does-this-error-mean/#findComment-564053 Share on other sites More sharing options...
MegR Posted June 12, 2008 Author Share Posted June 12, 2008 First, Thanks for getting back to me Yes I installed XAMPP. .....could I be in trouble? ??? You see, I am a front end...graphics person!....aaah! I would appreciate more detail. Regards, MegR Quote Link to comment https://forums.phpfreaks.com/topic/109920-what-does-this-error-mean/#findComment-564074 Share on other sites More sharing options...
ober Posted June 12, 2008 Share Posted June 12, 2008 1) Make sure you've enabled the mail server. 2) Look here for configuration help: http://www.google.com/search?q=xampp+configure+mail+server Quote Link to comment https://forums.phpfreaks.com/topic/109920-what-does-this-error-mean/#findComment-564077 Share on other sites More sharing options...
MegR Posted June 12, 2008 Author Share Posted June 12, 2008 Thank you very much Ober. Appreciate your help. And thanks to everyone else too! Quote Link to comment https://forums.phpfreaks.com/topic/109920-what-does-this-error-mean/#findComment-564089 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.