smtps

1.0.2 • Public • Published

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

  1. Install the smtps-demon for linux.
  2. 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")
}

Readme

Keywords

none

Package Sidebar

Install

npm i smtps

Weekly Downloads

3

Version

1.0.2

License

ISC

Unpacked Size

1.19 kB

Total Files

2

Last publish

Collaborators

  • lostpirate