Skip to content

Commit

Permalink
Replace custom mail provider with nodemailer plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
diogotcorreia committed Apr 20, 2022
1 parent e412fa0 commit 9b3e771
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 96 deletions.
14 changes: 1 addition & 13 deletions backend/config/plugins.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,13 @@
module.exports = ({ env }) => ({
email: {
provider: 'lpemailer',
provider: 'nodemailer',
providerOptions: {
host: env('SMTP_HOST', 'localhost'),
port: env.int('SMTP_PORT', 25),
secure: false,
secureConnection: false,
pool: false,
debug: false,
logger: true,
maxConnections: 10,
maxMessages: 100,
rateDelta: 1000,
ignoreTLS: true,
auth: {
user: env('SMTP_USERNAME', ''),
pass: env('SMTP_PASSWORD', ''),
},
tls: {
rejectUnauthorized: false,
},
},
settings: {
defaultFrom: '"[DEV] Livraria e Papelaria Espaço" <[email protected]>',
Expand Down
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"strapi-plugin-graphql": "3.6.8",
"strapi-plugin-upload": "3.6.8",
"strapi-plugin-users-permissions": "3.6.8",
"strapi-provider-email-lpemailer": "file:providers/strapi-provider-email-lpemailer",
"strapi-provider-email-nodemailer": "^3.6.8",
"strapi-utils": "3.6.8"
},
"strapi": {
Expand Down
63 changes: 0 additions & 63 deletions backend/providers/strapi-provider-email-lpemailer/index.js

This file was deleted.

11 changes: 0 additions & 11 deletions backend/providers/strapi-provider-email-lpemailer/package.json

This file was deleted.

8 changes: 0 additions & 8 deletions backend/providers/strapi-provider-email-lpemailer/yarn.lock

This file was deleted.

13 changes: 13 additions & 0 deletions backend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8564,6 +8564,11 @@ [email protected]:
dependencies:
nodemailer-fetch "1.6.0"

[email protected]:
version "6.6.1"
resolved "https://registry.yarnpkg.com/nodemailer/-/nodemailer-6.6.1.tgz#2a05fbf205b897d71bf43884167b5d4d3bd01b99"
integrity sha512-1xzFN3gqv+/qJ6YRyxBxfTYstLNt0FCtZaFRvf4Sg9wxNGWbwFmGXVpfSi6ThGK6aRxAo+KjHtYSW8NvCsNSAg==

[email protected], nodemailer@^6.6.3:
version "6.7.0"
resolved "https://registry.yarnpkg.com/nodemailer/-/nodemailer-6.7.0.tgz#86614722c4e0c33d1b5b02aecb90d6d629932b0d"
Expand Down Expand Up @@ -11571,6 +11576,14 @@ [email protected]:
dependencies:
nodemailer "^6.4.6"

strapi-provider-email-nodemailer@^3.6.8:
version "3.6.8"
resolved "https://registry.yarnpkg.com/strapi-provider-email-nodemailer/-/strapi-provider-email-nodemailer-3.6.8.tgz#203f27f2b4d6ace8eaa1db5151b8b177d29f5a71"
integrity sha512-yvACKxB1F6Lyk5JvLsTquXgJVwYG0vTZEN4YiTPX3I1L5Df1Izzkjzm9pjZwu24ucGCmq9nNyLh688lG/6L1ow==
dependencies:
lodash "4.17.21"
nodemailer "6.6.1"

[email protected]:
version "3.6.8"
resolved "https://registry.yarnpkg.com/strapi-provider-email-sendmail/-/strapi-provider-email-sendmail-3.6.8.tgz#6b9f6db31dee6656e4f09fa20479bcb9b6abf87d"
Expand Down

0 comments on commit 9b3e771

Please sign in to comment.