0.0.16 • Published 7 years ago

ndx-gmail v0.0.16

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

ndx-gmail

send email with gmail for ndx-framework apps

install with
npm install --save ndx-gmail jade

requirements

make a directory in root called /views and put your email templates in there
views/mail.jade

html
  head
   title= subject
  body
    h1= subject
    p= message

example

src/server/app.coffee

require 'ndx-server'
.config
  database: 'db'
.use 'ndx-gmail'
.controller (ndx) ->
  ndx.gmail.send
    template: 'mail.jade'
    to: 'email@email.com'
    subject: 'email subject'
    message: 'email message'
  , (err) ->
    if not err
      console.log 'email sent'

environment variables

environmentconfigdescription
GMAIL_USERgmailUsergmail username
GMAIL_PASSgmailPassgmail password
0.0.16

7 years ago

0.0.15

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 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

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago