Denali Mailer
An awesome addon built on the Denali framework.
Usage
Install within your app:
npm install --save denali-mailer
Create a mailer you'd like to use:
// app/mailers/welcome/mailer.js; extends Mailer from = 'myemail@something.com'; { return dataemail; }
And define your templates in app/mailers/welcome/tempalte.{html,txt}
which get access to the data via ejs.
Use in your action via this.service('mailer')
:
; serializer = false; { let mailer = this; let data = email: 'hello@user.com' ; mailer; return message: 'Welcome to Denali!' ; }
Developing
- Clone the repo down
npm install
denali server
- Hit localhost:3000
Tests
$ denali test