feathers-mailgun
TODO
- Better example
- Lock down so mailer service is not exposed externally, maybe even by default for security reasons
Installation
npm install mailgun-js feathers-mailgun --save
Documentation
// Register the service, see below for an exampleapp; // Use the servicevar email = from: 'FROM_EMAIL' to: 'TO_EMAIL' subject: 'Mailgun test' html: 'This is the email body'; app;
Complete Example
Here's an example of a Feathers server with a mailer
Mailgun service.
;;;; // Create a feathers instance.var app = // Enable REST services // Turn on JSON parser for REST services // Turn on URL-encoded parser for REST services ; // Register the Mailgun serviceapp; // Use the servicevar email = from: 'FROM_EMAIL' to: 'TO_EMAIL' subject: 'Mailgun test' html: 'This is the email body'; app; // Start the server.var port = 3030;app;
You can run this example by using node examples/app
. Make sure you've added your
License
Copyright (c) 2016
Licensed under the MIT license.