2.0.5 • Published 7 years ago

gbox-notification v2.0.5

Weekly downloads
49
License
******
Repository
-
Last release
7 years ago

Build as support for Gauss Box API. Works with Sails.js only.

Send email notification. Only for GaussBox and Sails.js.

Install

$ npm install --save gbox-notification

Usage Example

First set emailConfig object in env file!

const notification = require('gbox-notification');

    notification.sendNotification('key', emails, data)

List of keys

		Email object:

		[
			{
				email:'test@gauss.hr',
				language: 'eng'
			}
		]

		Data object:

		{
			parent:{},
			child:{},
			option,
			apiData:{}
		}

		************************************************


		Send email when user is created and have access:

		key : 'user_create_send_password'

		{
			parent: {userDetailsObject}
			child: {}
			option: {password:'password'}
			apiData: apiData
		}

		*************************************************

		Reset password notification:

		key : 'reset_password'

		{
			parent: {userDetailsObject}
			child: {}
			option:{resetUrl:'/#/auth/reset-password/${token}'},
			apiData: apiData
		}

Created by

Dejan Kubaša, Gauss d.o.o.

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago