mumail
send mail in mustache
usage
npm install mumail
Mumail = require 'mumail' mumail = templatePath: "/templates/" from: 'noreply@localhost' transport: host: 'smtp.test.com' port: 465 auth: user: "username" pass: "password" secure: yes mumailsend to: "user@somehost.com" subject: "Welcome!" template: "welcome" data: username: 'unique-username'then -> consolelog "sent"
welcome.html
located in ./templates
welcome {{username}}