Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.47 KB

README.md

File metadata and controls

31 lines (22 loc) · 1.47 KB

Hapi Maily Hapi Maily

Join the chat at https://gitter.im/hapi-smiles/hapi-maily Build Status Coverage Status

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

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.

Read More

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.