Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 SvW, Ward, Wesley, John Gardeniers, MDMarra Mar 2 '12 at 16:45

Questions on Server Fault are expected to relate to professional 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.

add comment

3 Answers

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
add comment

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
add comment

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
add comment

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