Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
JavaScript
branch: master

This branch is 31 commits behind compoundjs:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
README.md
install.js
package.json

README.md

Installation

railway install https://github.com/1602/railway-mailer.git

Usage

Put you email views into the app/views/emails directory with following naming style:

templatename.format (html or text)
templatename.locale.format

When you want to send email, just call

app.extensions.mailet.sendEmail(
    'templatename',
     data,
     {subject: 'Email subject', email: 'recipient@example.com', from: 'me@home'}
);

I know, this API is ugly :) better solution is coming soon.

License

MIT

Contribution

Contributors are welcome

Something went wrong with that request. Please try again.