mixdown-postmark

0.1.0 • Public • Published

postmark

A Postmark plugin for Mixdown or any Broadway-compatible plugin pattern. Simple wrapper for postmark.js.

Usage

Config

The only required option is the API key, but you can provide any option accepted by send() and it will set it as a default.

"plugins": {
    "postmark": {
        "module": 'mixdown-postmark',
        "options": {
            "apikey": 'POSTMARK_API_TEST'
        }
    }
}

Sending a message

app.plugins.postmark.send({
    "From" : "sender@example.com",
    "To" : "receiver@example.com",
    "Cc" : "copied@example.com",
    "Bcc": "blank-copied@example.com",
    "Subject" : "Test",
    "HtmlBody" : "<b>Hello</b>",
    "TextBody" : "Hello",
}, function (error, result) {
    // ok then
})

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    1

Package Sidebar

Install

npm i mixdown-postmark

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • cappslock