@thorwurtzner/nodemailer-template

3.0.1 • Public • Published

Nodemailer Template

How to install

npm i @thorwurtzner/nodemailer-template

Setting it up

Create a file named .env and paste this

EMAIL = "your-email-here"
PASS = "your-email-password-here"

The import is all ready in the script, and ofcourse keep your .env a secret, don't publish it!


How to use

var nodemailerTemplate = require("@thorwurtzner/nodemailer-template")

nodemailerTemplate(
    // From
    "email@hotmail.com",

    // To
    "email@gmail.com",

    // Subject
    "This is subject text",

    // Text
    "This is email text"
)

Run your file in node, and the email will send by gmail!

Package Sidebar

Install

npm i @thorwurtzner/nodemailer-template

Weekly Downloads

1

Version

3.0.1

License

MIT

Unpacked Size

2.06 kB

Total Files

3

Last publish

Collaborators

  • thorwurtzner