1.0.0 • Published 4 years ago

@laurenskling/strapi-provider-email-postmark v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

strapi-provider-email-sendgrid

Resources

Links

Prerequisites

You need to have the plugin strapi-plugin-email installed in you Strapi project.

Installation

# using yarn
yarn add strapi-provider-email-postmark

# using npm
npm install strapi-provider-email-postmark --save

Configuration

VariableTypeDescriptionRequiredDefault
providerstringThe name of the provider you useyes
providerOptionsobjectProvider optionsyes
providerOptions.apiKeyobjectApi key given to the function setApiKey. Please refer to @sendgrid/mailyes
settingsobjectSettingsno{}
settings.defaultFromstringDefault sender mail addressnoundefined
settings.defaultTostringDefault receiver mail addressnoundefined
settings.defaultReplyTostringDefault address receiver is asked to reply tonoundefined

Example

Path - config/plugins.js

module.exports = ({ env }) => ({
  // ...
  email: {
    provider: 'postmark',
    providerOptions: {
      apiKey: env('POSTMARK_API_KEY'),
    },
    settings: {
      defaultFrom: 'from@strapi.io',
      defaultTo: 'to@strapi.io',
      defaultReplyTo: 'reply-to@strapi.io',
    },
  },
  // ...
});