@bg-dev/strapi-provider-email-gmail
v1.0.1
Published
A Strapi plugin for sending email from Gmail
Downloads
7
Readme
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"),
},
},
},
// ...
});