Complete Postmark API. Send mail, manage bounces.
var postmark = require('postmark-api')("your api key"); postmark.send({ "From": "registered.and.confirmed@postmark", "To": "you@host", "Subject": "subject", "TextBody": "message" }, function (err, res) { require('util').log(err + " " + JSON.stringify(res)); });
npm install postmark-api
Set your postmark-api-key in test/config.js
or the bounce-tests will fail, then run:
nodeunit test/test-postmark.js
apiKey
API-key provided by Postmarkoptions
Options object used as default values for postmark.send()ssl
Use SSL, defaults to falsemessage
Postmark Message Format
Sends email.
TODO:
Attachments
message
Postmark Message Formatcallback
Returns a summary of inactive emails and bounces by type.
callback
List of bounces, optionally filtered
count
number of bounces to fetch at onceoffset
number of bounces to skipfilter
Filters to applycallback
Get details about a single bounce.
bounceID
a bounce's IDcallback
Get raw bounce, as Postmark received it.
bounceID
a bounce's IDcallback
List of tags used
callback
Reactivate the recipient associated with a bounce.
bounceID
a bounce's IDcallback