Socket
Book a DemoInstallSign in
Socket

@ryanforever/email

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ryanforever/email

a simple email client using nodemailer

latest
Source
npmnpm
Version
1.0.6
Version published
Maintainers
1
Created
Source

email

a simple email client that uses nodemailer

const Email = require("@ryanforever/email")
const email = new Email({
    username: "johnsmith@gmail.com",
    password: "1234abcd",
    name: "John Smith",
    email: "johnsmith@gmail.com",
})

email.send({
    to: "drakefan69@yahoo.com",
    subject: "Hello",
    body: "I love you"
})

config

// setup
const email = new Email({
    host,       // default is gmail "smtp.gmail.com"
    port,       // default is 587
    username,   // your email username
    password,   // your email password
    name,       // how you want your name to appear
    email       // address emails will be sent from
})

// send an email
email.send({
    to,         // address of recipient
    subject,    // subject of email
    body        // body/text of email
})

FAQs

Package last updated on 01 Dec 2022

Did you know?

Socket

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