0.0.2 • Published 3 years ago
sails-hook-mailgun v0.0.2
sails-hook mailgun
Installation
npm i sails-hook-mailgun --save
Configuration
sails.hooks.mailgun.send(...options);
Parameter | type | default | Details |
---|---|---|---|
key | string | mailgun api key | |
domain | string | domain | |
url | url | https://api.mailgun.net | change it in case account is eu hosted |
from | default sender | ||
testMode | boolean | false | Enables sending in test mode. can be overwrite by adding option 'o:testmode': 'yes', more detail see test mode |
Usage
send message
sails.hooks.mailgun.send(...options);
check mailgun-js docs for 'options' detail: #messages