1.0.1 • Published 4 years ago

@pentcloud/strapi-provider-email-pentcloud v1.0.1

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

strapi-provider-email-sendmail

Prerequisites

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

Installation

# using npm
npm install @pentcloud/strapi-provider-email-ses --save

Configuration

VariableTypeDescriptionRequiredDefault
providerstringThe name of the provider you useyes
providerOptionsobjectWill be directly given to require('sendmail'). Please refer to sendmail doc.no{}
settingsobjectSettingsno{}
settings.defaultFromstringDefault sender mail addressnoundefined
settings.defaultReplyTostring | arrayDefault address or addresses the receiver is asked to reply tonoundefined

Example

Path - config/plugins.js

module.exports = ({ env }) => ({
    // ...
    email: {
        provider: 'pentcloud',
        providerOptions: {
            method: 'POST',
            url: 'https://domain.com/v1/mail/ses/send',
            headers: {
                'Content-Type': 'application/json',
                'x-api-key': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
            },
        },
        settings: {
            defaultNameFrom: 'APP_NAME',
            defaultEmailFrom: 'no-reply@APP_NAME.com',
        },
    },
    // ...
})