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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...