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 : "test@email.com",
password : env.emailpassword
});
const res = await userHandle.makeEmail({
email : "test@anotherserver.com",
mailOptions : {
cc : "testio@ggcc.com",
dc : "testio2n@testioo.com"
}
},{
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")
}