@bg-dev/strapi-provider-email-gmail

1.0.1 • Public • Published

Strapi Provider Email Gmail

A Strapi plugin for sending email from Gmail through google oauth2

Installation

npm i @bg-dev/strapi-provider-email-gmail

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

For detailed intructions on how to get these secrets, please refer to this video tutorial

GMAIL_CLIENT_ID

GMAIL_CLIENT_SECRET

GMAIL_USER_EMAIL

GMAIL_REFRESH_TOKEN

Setup

config/plugins

module.exports = ({ env }) => ({
  // // ...
  email: {
    config: {
      provider: "@bg-dev/strapi-provider-email-gmail",
      providerOptions: {
        clientId: env("GMAIL_CLIENT_ID"),
        clientSecret: env("GMAIL_CLIENT_SECRET"),
        userEmail: env("GMAIL_USER_EMAIL"),
        refreshToken: env("GMAIL_REFRESH_TOKEN"),
      },
      settings: {
        defaultFrom: env("GMAIL_USER_EMAIL"),
        defaultReplyTo: env("GMAIL_USER_EMAIL"),
      },
    },
  },
  // ...
});

Readme

Keywords

Package Sidebar

Install

npm i @bg-dev/strapi-provider-email-gmail

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

4.91 kB

Total Files

6

Last publish

Collaborators

  • bg-org