# @joshmeads/strapi-provider-email-postmark

> Postmark provider for strapi email

Latest version **4.4.5** (published 2022-10-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install @joshmeads/strapi-provider-email-postmark
pnpm add @joshmeads/strapi-provider-email-postmark
yarn add @joshmeads/strapi-provider-email-postmark
bun add @joshmeads/strapi-provider-email-postmark
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.4.5 |
| Published | 2022-10-31 |
| First published | 2022-10-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=14.19.1 <=18.x.x |
| Dependencies | 3 |
| Unpacked size | 8.9 KB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Josh Meads |
| Maintainers | joshmeads |
| Keywords | email, strapi |

## Links

- npm: https://www.npmjs.com/package/@joshmeads/strapi-provider-email-postmark
- Repository: https://github.com/joshmeads/strapi-provider-email-postmark
- Homepage: https://github.com/joshmeads/strapi-provider-email-postmark#readme
- Issues: https://github.com/joshmeads/strapi-provider-email-postmark/issues
- npm.io page: https://npm.io/package/@joshmeads/strapi-provider-email-postmark

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [postmark](https://npm.io/package/postmark.md) ^3.0.14
- [@strapi/utils](https://npm.io/package/@strapi/utils.md) 4.4.5

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 4.4.5 (latest) — 2022-10-31

## README

# @joshmeads/strapi-provider-email-postmark

Based upon [@strapi/provider-email-sendgrid](https://github.com/strapi/strapi/tree/v4.4.5/packages/providers/email-sendgrid)

## Resources

- [LICENSE](LICENSE)

## Links

- [PostmarkApp](https://postmarkapp.com/)
- [Strapi website](https://strapi.io/)
- [Strapi documentation](https://docs.strapi.io)
- [Strapi community on Discord](https://discord.strapi.io)
- [Strapi news on Twitter](https://twitter.com/strapijs)

## Installation

```bash
# using yarn
yarn add @joshmeads/strapi-provider-email-postmark

# using npm
npm install @joshmeads/strapi-provider-email-postmark --save
```

## Configuration

| Variable                           | Type    | Description                                                                                                                     | Required | Default   |
| ---------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------- | -------- | --------- |
| provider                           | string  | The name of the provider you use                                                                                                | yes      |           |
| providerOptions                    | object  | Will be directly given to `require('postmark')`. Please refer to [postmark](https://www.npmjs.com/package/postmark) doc.        | yes      | {}        |
| providerOptions.serverToken        | string  | Your Postmark server token / api key                                                                                            | yes      | {}        |
| settings                           | object  | Settings                                                                                                                        | no       | {}        |
| settings.defaultFrom               | string  | Default sender mail address                                                                                                     | no       | undefined |
| settings.defaultSubject            | string  | Default subject line                                                                                                            | no       | undefined |
| settings.defaultTo                 | string  | Default recipient mail address                                                                                                  | no       | undefined |
| settings.defaultReplyTo            | string  | Default reply mail address                                                                                                      | no       | undefined |
| settings.defaultTag                | string  | Default applied tag in Postmark Dashboard                                                                                       | no       | undefined |
| settings.defaultTrackOpens         | boolean | Track opens by Default                                                                                                          | no       | undefined |
| settings.defaultTrackLinks         | string  | Track links by Default [Valid ENUM Options](https://activecampaign.github.io/postmark.js/enums/Models.LinkTrackingOptions.html) | no       | undefined |
| settings.defaultMessageStream      | string  | Default message stream to use                                                                                                   | no       | undefined |
| settings.defaultTemplateModelItems | object  | If using a template these items will exist on the model unless overwritten.                                                     | no       | undefined |

> :warning: The Shipper Email (or defaultfrom) may also need to be changed in the `Email Templates` tab on the admin panel for emails to send properly

### Example

**Path -** `config/plugins.js`

```js
module.exports = ({ env }) => ({
  // ...
  email: {
    config: {
      provider: "@joshmeads/strapi-provider-email-postmark",
      providerOptions: {
        serverToken: env("POSTMARK_SERVER_TOKEN"),
      },
      settings: {
        defaultFrom: env("POSTMARK_DEFAULT_FROM", "myemail@protonmail.com"),
        defaultTo: env("POSTMARK_DEFAULT_TO", "myemail@protonmail.com"),
        defaultReplyTo: env("POSTMARK_DEFAULT_REPLY_TO"),
        defaultSubject: env("POSTMARK_DEFAULT_SUBJECT"),
        defaultTag: env("POSTMARK_DEFAULT_TAG"),
        defaultTrackOpens: env.bool("POSTMARK_DEFAULT_TRACK_OPENS"),
        defaultTrackLinks: env("POSTMARK_DEFAULT_TRACK_LINKS"),
        defaultMessageStream: env("POSTMARK_DEFAULT_MESSAGE_STREAM"),
        defaultTemplateModelItems: env.json(
          "POSTMARK_DEFAULT_TEMPLATE_MODEL_ITEMS"
        ),
      },
    },
  },
  // ...
});
```

---
_Source: https://npm.io/package/@joshmeads/strapi-provider-email-postmark · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
