Strapi Provider Email Smtp

screenshot of Strapi Provider Email Smtp
strapi

A third-party SMTP email provider for Strapi

Overview

The strapi-provider-email-smtp is a third-party SMTP email provider specifically designed for use with Strapi. It has been tested and verified to work seamlessly with Gmail's SMTP service.

Features

  • Seamless Integration: This provider seamlessly integrates with Strapi, allowing users to easily send emails through SMTP.
  • Gmail Compatibility: The provider has been thoroughly tested and verified to work with Gmail's SMTP service.
  • Easy Installation: Installing the strapi-provider-email-smtp is a quick and straightforward process.

Configuration

To configure the strapi-provider-email-smtp, make changes to your config/plugins.js file as follows:

For Strapi version 4:

module.exports = ({ env }) => ({
  email: {
    provider: 'smtp',
    providerOptions: {
      host: 'smtp.gmail.com',
      port: 587,
      secure: false,
      auth: {
        user: env('SMTP_USERNAME'),
        pass: env('SMTP_PASSWORD'),
      },
      defaultFrom: env('SMTP_SENDER'),
    },
  },
});

For Strapi version 3:

module.exports = ({ env }) => ({
  email: {
    provider: 'smtp',
    providerOptions: {
      host: 'smtp.gmail.com',
      port: 587,
      auth: {
        user: env('SMTP_USERNAME'),
        pass: env('SMTP_PASSWORD'),
      },
      defaultFrom: env('SMTP_SENDER'),
    },
  },
});

Note: To send emails via Gmail, make sure to allow 'Less Secure Apps' from your account security options.

Summary

The strapi-provider-email-smtp is a reliable and easy-to-use third-party SMTP email provider for Strapi. It offers seamless integration with Strapi and has been extensively tested with Gmail's SMTP service. With easy installation and configuration, this provider ensures smooth email delivery within your Strapi application.

strapi
Strapi

Strapi is an open source headless CMS that provides a customizable content management system and API for your projects. It allows you to manage content in a visual interface and use a REST or GraphQL API to retrieve the data.