Socket
Socket
Sign inDemoInstall

smtps

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    smtps

SMTP interface for JavaScript


Version published
Weekly downloads
2
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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")
}

FAQs

Last updated on 06 Oct 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc