1.5.5 • Published 2 years ago

nodemailjs v1.5.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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);