0.0.12 • Published 6 years ago

@rajatsehgal/gmailer v0.0.12

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

gmailer

A module that provides the capability to send emails through a gmail account.

Installation

npm install @rajatsehgal/gmailer --save

Usage

import gmailer from '@rajatsehgal/gmailer';

// Using email and password
gmailer.init({
  name: 'Your Name',
  email: 'you@gmail.com',
  password: 'supersecret'
});

// Or using Oauth2
gmailer.initOAuth({
  name: 'Your Name',
  email: 'you@gmail.com',
  clientId: 'Your Client ID',
  clientSecret: 'Your Client Secret',
  refreshToken: 'Your Refresh Token',
  accessToken: 'Your Access Token'
});

gmailer.send({
  to: 'someone@gmail.com',
  subject: 'Testing gmailer',
  text: 'Hello from gmailer!'
});
0.0.12

6 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago