### Sending Email with Postmark API using createObject in ColdFusion Source: https://github.com/activecampaign/postmark-coldfusion/blob/main/ReadMe.md This snippet illustrates an alternative method for sending emails using the Postmark API in ColdFusion, employing the `createObject` function. It instantiates the `postmarkapi` component and directly invokes its `sendMail` method, passing the required arguments as a comma-separated list. This approach offers a more programmatic way to interact with the component. ```ColdFusion postmark = createObject("component", "path.to.postmarkapi"); postmark.sendMail( "recipient@domain.com" ,"sender@domain.com" ,"Email Subject" ,"your-postmark-api-key" ,"

It worked!

" ); ``` -------------------------------- ### Sending Email with Postmark API using cfinvoke in ColdFusion Source: https://github.com/activecampaign/postmark-coldfusion/blob/main/ReadMe.md This snippet demonstrates how to send an email using the Postmark API via the `cfinvoke` tag in ColdFusion. It calls the `sendMail` method of the `postmarkapi` component, passing required arguments like recipient, sender, subject, API key, and optional HTML content. The Postmark status code is returned into the `pmCode` variable. ```ColdFusion ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.