Skip to content

zweifisch/mumail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

send mail in mustache

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published