0.3.1 • Published 9 years ago

mumail v0.3.1

Weekly downloads
1
License
BSD
Repository
github
Last release
9 years ago

mumail

NPM Version

send mail in mustache

usage

npm install mumail
Mumail = require 'mumail'

mumail = new Mumail
    templatePath: "#{__dirname}/templates/"
    from: 'noreply@localhost'
    transport:
        host: 'smtp.test.com'
        port: 465
        auth:
            user: "username"
            pass: "password"
        secure: yes

mumail.send
    to: "user@somehost.com"
    subject: "Welcome!"
    template: "welcome"
    data:
        username: 'unique-username'
.then ->
    console.log "sent"

welcome.html located in ./templates

<html>
    <body>
        welcome {{username}}
    </body>
</html>
0.3.1

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.0

11 years ago

0.0.3

11 years ago

0.0.2

12 years ago

0.0.0

12 years ago