strapi-provider-email-smtp

1.0.3 • Public • Published

strapi-provider-email-smtp

A third-party SMTP email provider for Strapi, tested with Gmail SMTP.

Installation

In the root directory of your project, run:

npm i strapi-provider-email-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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    723
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    723
  • 1.0.2
    30
  • 1.0.1
    27
  • 1.0.0
    0

Package Sidebar

Install

npm i strapi-provider-email-smtp

Weekly Downloads

605

Version

1.0.3

License

MIT

Unpacked Size

5.15 kB

Total Files

4

Last publish

Collaborators

  • bass3l