hapi-maily
v1.0.0
Published
Send emails using hapi with a custom handler function
Downloads
1
Readme
Hapi Maily
This is a plugin for sending out emails by defining a custom handler. When the route is hit, an email is sent to the user in the email attribute of the payload.
Install
You can add the module to your Hapi Server using npm or yarn
npm install hapi-maily --save
# or
yarn add hapi-maily
Documentation
Options Reference
Read about options for the plugin and route options. Useful if you wish to extend the plugin beyond the setup used in the example server.
Quick Start
In your Hapi apps main JavaScript file add the following code to a created Hapi server object. You will also add the routes for your API as described on the hapijs documentation.
For an example server see the example hapi server. To see a simple implementation.