1.1.0 • Published 3 years ago
jsmtp v1.1.0
Early release, will come updates eventually
JSMTP
let jsmtp = require('jsmtp');
jsmtp.start("mail.example.com", "127-0-0-1.ex.broadband.net", "../mails/", fs.readFileSync('privkey.pem'), fs.readFileSync('fullchain.pem'), callback,false);
// service reverse dir key cert cb
// you can put the key and cert to null to disable tls
// callback is of course optional, will tell you mail info when a mailer is exiting
function callback(mailInfo){
console.log(mailInfo);
}
jsmtp.send("mail.example", "smtp.example.com",587,"user@mail.example","touser@example.com","content",true);
// service server port from to data tls