Andris' smtp-server is great though requires a little coding. With Haraka running the test_queue plugin, it just writes every mail to /tmp/mail.eml which might be exactly all you need.
On Fri, May 1, 2015 at 9:06 AM, Adrian Lynch < [email protected]> wrote: > This looks like the ticket: https://github.com/andris9/smtp-server > > On 30 April 2015 at 15:41, Dave Westerman <[email protected]> > 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? >> >> -- >> Job board: http://jobs.nodejs.org/ >> New group rules: >> https://gist.github.com/othiym23/9886289#file-moderation-policy-md >> Old group rules: >> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >> --- >> You received this message because you are subscribed to the Google Groups >> "nodejs" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/nodejs/32129931-05a5-4ed2-b83a-88e51391dcdc%40googlegroups.com >> <https://groups.google.com/d/msgid/nodejs/32129931-05a5-4ed2-b83a-88e51391dcdc%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- > Job board: http://jobs.nodejs.org/ > New group rules: > https://gist.github.com/othiym23/9886289#file-moderation-policy-md > Old group rules: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/nodejs/CAH368STib91Kd1Ev8%3DZEoOat8uTsZRpf5gXdVs2u%3Dqy1QA1qMA%40mail.gmail.com > <https://groups.google.com/d/msgid/nodejs/CAH368STib91Kd1Ev8%3DZEoOat8uTsZRpf5gXdVs2u%3Dqy1QA1qMA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CAPJ5V2ZyfbLy2%2BPhyDYJu6KS51%3DaMvASSfKx8AYkb75QEe%3DsVg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
