npm

nodemailjs

1.5.5 • Public • Published

mailjs

Description

Allows you to send emails to people in a simple way, and by being able to integrate html code.

Send email

const mailjs = require('nodemailjs');

const SendMail = new mailjs
    .mail('email of person', 'gmail', { user: 'your email', pass: 'your password' })
    .send('Title', 'Content');

Send email with html content

const mailjs = require('nodemailjs');

// https://webformatter.com/html -> format in one line
const html = "<h1>Test</h1><br><p>This is a test</p>";

const SendMail = new mailjs
    .mail('email of person', 'gmail', { user: 'your email', pass: 'your password' })
    .send('Title', null, html);

Readme

Keywords

none

Package Sidebar

Install

npm i nodemailjs

Weekly Downloads

0

Version

1.5.5

License

ISC

Unpacked Size

2.78 kB

Total Files

5

Last publish

Collaborators

  • jules010209