Skip to content

jnetRepo/strapi-provider-email-smtp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: '[email protected]',
      password: 'my.password',
      rejectUnauthorized: true,
      requireTLS: true,
      connectionTimeout: 1,
    },
    settings: {
      from: '[email protected]',
      replyTo: '[email protected]',
    },
  },
});

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

About

A third-party SMTP email provider for Strapi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%