Any suggestion for smtp mail server in nodejs?

2019-01-30 03:15发布

I googled out quite a few but all are at best alpha versions, so it seems I will have to try an code one. Instead of coding one from scratch I would like to build on existing implementation, but a good one.

Any suggestions?

标签: smtp node.js
5条回答
爷的心禁止访问
2楼-- · 2019-01-30 03:49

Haraka: https://github.com/baudehlo/Haraka

Is a full featured mail server in node.js - should do everything that you need.

查看更多
Rolldiameter
3楼-- · 2019-01-30 03:52

Personally, I use node_mailer :

send emails from node.js to your smtp server, simple as cake.

From https://github.com/marak/node_mailer :

Features :

  • super simple api
  • emails are blasted out asynchronously
  • uses connection pooling per SMTP server
  • super simple built in templates using Mustache.js
  • SSL supported (NodeJS v0.3.x or later)
查看更多
叼着烟拽天下
4楼-- · 2019-01-30 03:54

RFC 2821 (http://tools.ietf.org/html/rfc2821) is not too complex, you should be able to flesh out a server in about 300 lines of js.

查看更多
成全新的幸福
5楼-- · 2019-01-30 03:54

Some answers here are quite outdated, so I'd like to offer the lastest.

There are currently three Node SMTP servers (libraries) I know of:

There's also mailin which is an SMTP server that receives messages and posts them to some URL for you to process. Mailin uses Python for some optional features.

查看更多
迷人小祖宗
6楼-- · 2019-01-30 04:04

SMTP server - I've used Simple SMTP in conjunction with mailparser. IMHO, these are the best tools on the Internet for building SMTP servers in Node.js.

UPDATE: Simple SMTP has been deprecated. Use SMTP server instead (the successor of the Simple SMTP module).

查看更多
登录 后发表回答