0.3.1 • Published 12 years ago

hook.io-mailer v0.3.1

Weekly downloads
13
License
-
Repository
github
Last release
12 years ago

hook.io-mailer

a simple Hook for sending emails

Hook.io config.json settings

{
  "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:

//
// 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);
0.3.1

12 years ago

0.3.0

13 years ago

0.2.0

13 years ago

0.0.1

13 years ago