Releases: ActiveCampaign/postmark-dotnet
Allow nullable LinkTrackingOptions
This is a minor release that adds the following changes:
- Make
LinkTrackingOptions
nullable inPostmarkMessageBase.TrackLinks
. If the value is not provided, the default server'sLinkTracking
option will be used instead. - Add
NuGet
packageSPDX
license expression
Add support for Webhooks API
This release adds support for the Postmark Webhooks API.
Additionally, it removes the discontinued Tags Triggers API-related functions.
Please feel free to contact us if you have any questions!
Add support for Layout Templates
This release adds support for a new Postmark feature: Layout Templates.
There are no breaking changes as this release only adds new optional parameters to the template-related functions and new fields to the template models.
Changes:
- Add
TemplateType
andLayoutTemplate
fields to thePostmarkTemplate
andPostmarkTemplateListingResponse
models - Add
TemplateType
andLayoutTemplate
optional parameters toGetTemplatesAsync
,CreateTemplateAsync
,ValidateTemplateAsync
- Add
LayoutTemplate
optional parameter toEditTemplateAsync
Please feel free to contact us if you have any questions!
Template Alias Bugfix
This release resolves an issue that prevented sending templated messages using a TemplateAlias.
Better HttpClient Utilization
Previous versions of the postmark-dotnet library would instantiate multiple instances of the HttpClient. This pattern is not recommended by the .net team, and could cause some types of resource exhaustion in high concurrency use cases.
This version of the postmark library will now create a single HttpClient when you instantiate your first PostmarkClient or PostmarkAdminClient instance, and reuse the instance as needed for the lifetime of your application.
This version is largely compatible with previous versions of the client, however, the request Timeout option is no longer available during client instantiation (the timeout is set to 30 seconds).
Additionally, the NuGet package now only targets netstandard2, which should be largely compatible with recent versions of .net.
Support for new endpoints.
This release adds support for recent improvements to the Postmark API, including:
As always, we hope these improvements make your integration with Postmark even better, but please feel free to contact us in support if you have any questions!
New endpoints, full framework targetting, bugfixes!
This release provides the following improvements:
- The NuGet package can now target the full framework again. This is useful incases where the .net core sdk has not been installed, and older versions of Visual Studio.
- Template Alias support
- The "headers" collection passed to a outbound message constructor is now used when sending messages.
- Redundant
To
,Cc
,Bcc
classes have been replaced with aRecipient
class when listing outbound messages.
Thanks to all the people that reported issues or submitted pull requests!
New API support
This release adds support for setting the clickhookurl, and deliveryhookurl on Servers.
Additionally, support for two new click summary endpoints have been added.
.net Core Support!
At long last, we've updated the library for .net core.
This update is mostly compatible with previous versions of the library, but removes support for older versions of .net. We now require at least .net standard 1.1.
The updated package includes some minor improvements/breaking changes related to the inclusion of both a Text and Html body part in some of the convenience sending methods, but depending on how extensive your integration is, should only require some minor modifications to your code.
Adding a few missing properties to API payloads.
- Adding
Name
,From
, andServerID
to Bounce responses. - Adding
TrackLinks
to PostmarkMessage and Server classes.