smtps
v1.0.2
Published
SMTP interface for JavaScript
Downloads
6
Readme
SMTPs
Work is very much under construction, will publish it as soon as we can
Simple, Open, Interface for sending email without relying on any third party.
How to install
- Install the
smtps-demon
forlinux
. - Use interfaces
$ npm i smtps
const smtps = require("smtps");
const connection = await smtps.connect("http://127.0.0.1:4533");
// Will change it to something else
const userHandle = await connection.logInUser({
email : "[email protected]",
password : env.emailpassword
});
const res = await userHandle.makeEmail({
email : "[email protected]",
mailOptions : {
cc : "[email protected]",
dc : "[email protected]"
}
},{
type : "raw",
msg : "Hi, How you are doing today"
}).send()
if(res.code === SEND_EMAIL_RESPONSE_OK){
console.log("Email has been send")
}else{
console.log("opps!, something is wrong")
}