Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using XAMPP for local development and I am using the mail() function for sending the mail. But unfortunately it won't send the mail. I am not using any SMTP server in localhost. If I need to send mail what can I do? Thanks in advance.

share|improve this question

closed as off topic by Sven, Ward, Wesley, John Gardeniers, MDMarra Mar 2 '12 at 16:45

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

When I develop components sending e-mails, I use smtp-sink (part of Postfix distribution). It's a test SMTP server that does not transmit mails, but dumps them.

share|improve this answer

This question is probably better suited to Stackoverflow but you can use a mock SMTP server like fakemail.

Hope this helps.

share|improve this answer

sSMTP is one option, node.js SMTP server is another. Fakemail as mentioned by HTTP500 is definitely an option. You can configure sendmail to send outbound emails only, there are lots of options here.

You haven't really specified what OS you're using, etc.

You can also send through Gmail, see this post on StackOverflow

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.