strapi-provider-email-logging-smtp

1.0.3-1 • Public • Published

strapi-provider-email-logging-smtp

A third-party SMTP email provider for Strapi, tested with Gmail SMTP. A light fork of the original with the logger exposed to config.

Installation

In the root directory of your project, run:

npm i strapi-provider-email-logging-smtp

Configuration

In your config/plugins.js, set the following:

module.exports = ({ env }) => ({
  email: {
    provider: 'smtp',
    providerOptions: {
      host: 'smtp.gmail.com', //SMTP Host
      port: 465   , //SMTP Port
      secure: true,
      username: 'my.username@gmail.com',
      password: 'my.password',
      rejectUnauthorized: true,
      requireTLS: true,
      connectionTimeout: 1,
    },
    settings: {
      from: 'my.username@gmail.com',
      replyTo: 'my.username@gmail.com',
    },
  },
});

Don't forget to allow 'Less Secure Apps' from account security options, if sending via Gmail.

Package Sidebar

Install

npm i strapi-provider-email-logging-smtp

Weekly Downloads

2

Version

1.0.3-1

License

MIT

Unpacked Size

5.32 kB

Total Files

4

Last publish

Collaborators

  • flaki