Socket
Socket
Sign inDemoInstall

strapi-provider-email-smtp

Package Overview
Dependencies
2
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    strapi-provider-email-smtp

Strapi SMTP email provider with nodemailer


Version published
Weekly downloads
843
increased by22%
Maintainers
1
Install size
1.83 MB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 25 Sep 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc