Jump to content
Larry Ullman's Book Forums

Recommended Posts

hi, i tried to send an email through a php code as given in the book but following error occured

 

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\email.php on line 47

 

i tried to fix it by trying alot of things searching from internet but can't solve .

Link to comment
Share on other sites

Yes, Mercury is the mail server, but you're not listening to us.

Setting up the mail server in XAMPP is complicated.

If you want to do that, search Google for your answer. No one here can help you with that.

We're advising you to not bother with the XAMPP mail server.

If you want to use a mail server, use one on a live hosting site.

Link to comment
Share on other sites

 Share

×
×
  • Create New...