The documentation suggests using Install-Package Postmark, which does not work with the .NET CLI.
Suggest replacing it with dotnet add package Postmark.
Also, the sample code using HeaderCollection { { "X-CUSTOM-HEADER", "Header content" } } fails to compile due to a missing Add(string, string) overload.
Either the overload should be added or the example should use explicit Dictionary initialization.
Headers = new HeaderCollection(new Dictionary<string, string>
{
{ "X-Custom-Tracking", "Header content" }
})
The documentation suggests using
Install-Package Postmark, which does not work with the .NET CLI.Suggest replacing it with
dotnet add package Postmark.Also, the sample code using
HeaderCollection { { "X-CUSTOM-HEADER", "Header content" } }fails to compile due to a missing Add(string, string) overload.Either the overload should be added or the example should use explicit Dictionary initialization.