https://github.com/activecampaign/postmark-coldfusion
ColdFusion library for sending emails through Postmark - http://postmarkapp.com
https://github.com/activecampaign/postmark-coldfusion
Last synced: 4 months ago
JSON representation
ColdFusion library for sending emails through Postmark - http://postmarkapp.com
- Host: GitHub
- URL: https://github.com/activecampaign/postmark-coldfusion
- Owner: ActiveCampaign
- Created: 2010-03-18T10:13:48.000Z (about 16 years ago)
- Default Branch: main
- Last Pushed: 2022-06-22T08:40:06.000Z (almost 4 years ago)
- Last Synced: 2026-01-15T00:11:52.906Z (5 months ago)
- Language: ColdFusion
- Homepage: http://postmarkapp.com
- Size: 2.93 KB
- Stars: 6
- Watchers: 5
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
This is a ColdFusion Component for interacting with the [Postmark API](http://www.postmarkapp.com).
Free to use, free to change & improve. Please share those changes back with the community.
Version 1 was created by Jonathan Lane \([jonathan.lane@gmail.com](mailto:jonathan.lane@gmail.com)\).
---
Pretty easy to use. Drop `postmarkapi.cfc` in with your files and invoke it like so:
Alternatively, the `createObject` syntax is:
postmark = createObject("component", "path.to.postmarkapi");
postmark.sendMail(
"recipient@domain.com"
,"sender@domain.com"
,"Email Subject"
,"your-postmark-api-key"
,"
It worked!
"
);
The component has 4 required arguments and accepts an additional 4 optional arguments.
*REQUIRED:*
* **mailTo:** your recipient
* **mailFrom:** sending address
* **mailSubject:** subject of your message
* **apiKey:** the API key for the Postmark "server" you're using
*OPTIONAL:*
* **mailReply:** reply-to address
* **mailCc:** CC recipient
* **mailHTML:** content of the HTML message body
* **mailTxt:** plain text message body
The component returns the status code returned from Postmark.
The component was built against CF 8, but should work fine at least back to CF 6 (not tested though).
Feel free to send me any questions or comments. I'll do my best to answer them.