Skip to content

mixdown/postmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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" : "[email protected]",
	"To" : "[email protected]",
	"Cc" : "[email protected]",
	"Bcc": "[email protected]",
	"Subject" : "Test",
	"HtmlBody" : "<b>Hello</b>",
	"TextBody" : "Hello",
}, function (error, result) {
	// ok then
})

About

A Postmark plugin for Mixdown.

Resources

License

Stars

Watchers

Forks

Packages

No packages published