https://github.com/philips/mailer
a simple Hook for sending emails
https://github.com/philips/mailer
Last synced: 10 months ago
JSON representation
a simple Hook for sending emails
- Host: GitHub
- URL: https://github.com/philips/mailer
- Owner: philips
- Created: 2011-11-21T07:45:07.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-12-14T00:16:14.000Z (over 14 years ago)
- Last Synced: 2025-02-01T20:31:37.153Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 86.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
## hook.io-mailer
*a simple Hook for sending emails*
## Hook.io config.json settings
``` js
{
"mailer": {
"host": "localhost",
"username": "foo@bar.com",
"password": "1234",
"domain": "localhost"
}
}
```
## Hook.io Events Names
**sendEmail** *sends email*
**emailSent** *event emitted when email is successful sent*:
**error** *event emitted when email cannot send*:
```javascript
//
// emailOptions is a 1:1 mapping to github.com/marak/node_mailer API
//
var emailOptions = {
to : 'marak.squires@gmail.com',
from : 'mailer@hook.io',
subject : 'This is an email from hook.io mailer',
body : 'I would like a grilled cheese please.'
};
myhook.emit('sendEmail', emailOptions);
```