smtp2
Version:
simple smtp client and server for node.js
16 lines (15 loc) • 312 B
JavaScript
const smtp = require('..');
smtp.send({
from: 'mail@lsong.org',
to: 'hi@lsong.org',
subject: 'hello world',
body: 'This is a test message, do not reply.'
}, {
// tls: true,
port: 2525,
host: 'localhost'
}).then(res => {
console.log(res);
}, err => {
console.error('smtp send error:', err);
});