- This package provides a simple interface to Mailgun for sending email via Akshell.
- It is modelled after Ringo Mail
Sending an email is as simple as:
var mail = require('mail');
mail.send({
mailgun: {server: 'akshell.mailgun.org', key: 'key-12345'},
from: '[email protected]', to: '[email protected]',
subject: 'hello',
text: 'world'
});
To send HTML instead of plain text, replace the text
attribute with html
.
The server
and key
parameters are available via your Mailgun control panel.
To email multiple recipients, set to
to be an array of Strings.