How to use the postmark.Models function in postmark

To help you get started, we’ve selected a few postmark examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wildbit / postmark-cli / test / integration / shared.ts View on Github external
function templateToCreate(templatePrefix: string) {
  return new postmark.Models.CreateTemplateRequest(
    `${templatePrefix}-${Date.now()}`,
    "Subject",
    "Html body",
    "Text body",
    null,
    postmark.Models.TemplateTypes.Standard,
  );
}
github wildbit / postmark-cli / test / integration / shared.ts View on Github external
function templateToCreate(templatePrefix: string) {
  return new postmark.Models.CreateTemplateRequest(
    `${templatePrefix}-${Date.now()}`,
    "Subject",
    "Html body",
    "Text body",
    null,
    postmark.Models.TemplateTypes.Standard,
  );
}
github wildbit / postmark-cli / src / commands / templates / PullCommand.ts View on Github external
private retrieveOutputDir(outputDir: string,
                            templateType: pm.Models.TemplateTypes = pm.Models.TemplateTypes.Standard): string {
    return templateType === pm.Models.TemplateTypes.Layout ? join(outputDir,this.layoutDirectory) : outputDir;
  }

postmark

Official Node.js client library for the Postmark HTTP API - https://www.postmarkapp.com

MIT
Latest version published 1 month ago

Package Health Score

80 / 100
Full package analysis