> On Apr 30, 2015, at 10:41 AM, Dave Westerman <
david.l....@gmail.com> wrote:
>
> In testing a module that sends emails, I was wondering if there was some way that I could create a dummy SMTP server with Node.js. I would want it to receive the email requests, and then instead of actually sending emails, it would just write some info from the emails to a file, which I could then read to make sure the emails were created correctly.
>
> Can node.js handle smtp? Or can it only process http traffic?
Absolutely. The registry has several modules for that exactly, plus haraka which is a whole SMTP server you can use in production.