Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 21 additions & 11 deletions config/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,37 @@ module.exports = ({ env }) => {
},
email: {
config: {
provider: "sendgrid",
provider: "nodemailer",
providerOptions: {
apiKey: env("SENDGRID_API_KEY"),
host: env("SMTP_HOST"),
port: env("SMTP_PORT"),
auth: {
user: env("SMTP_USERNAME"),
pass: env("SMTP_PASSWORD"),
},
secure: false,
requireTLS: true,
tls: {
rejectUnauthorized: false,
},
},
settings: {
defaultFrom: env("AREBYTE_EMAIL"),
defaultReplyTo: env("AREBYTE_EMAIL"),
defaultFrom: env("EMAIL_FROM"),
defaultReplyTo: env("EMAIL_REPLY_TO"),
},
},
},
upload: {
config: {
provider: "strapi-provider-upload-do",
providerOptions: {
key: env('DO_SPACE_ACCESS_KEY'),
secret: env('DO_SPACE_SECRET_KEY'),
endpoint: env('DO_SPACE_ENDPOINT'),
space: env('DO_SPACE_BUCKET'),
directory: env('DO_SPACE_DIRECTORY'),
cdn: env('DO_SPACE_CDN'),
}
key: env("DO_SPACE_ACCESS_KEY"),
secret: env("DO_SPACE_SECRET_KEY"),
endpoint: env("DO_SPACE_ENDPOINT"),
space: env("DO_SPACE_BUCKET"),
directory: env("DO_SPACE_DIRECTORY"),
cdn: env("DO_SPACE_CDN"),
},
},
},
};
Expand Down
22 changes: 22 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@strapi/plugin-cloud": "4.25.11",
"@strapi/plugin-i18n": "4.25.11",
"@strapi/plugin-users-permissions": "4.25.11",
"@strapi/provider-email-nodemailer": "^5.5.1",
"@strapi/provider-email-sendgrid": "^5.4.0",
"@strapi/strapi": "4.25.11",
"better-sqlite3": "8.6.0",
Expand Down
34 changes: 34 additions & 0 deletions src/api/email/services/email.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
module.exports = ({ env }) => ({
key: "plugin_users-permissions_email",
value: {
reset_password: {
display: "Email.template.reset_password",
icon: "sync",
options: {
from: {
name: "Arebyte Plugin",
email: "[email protected]"
},
response_email: "",
object: "Reset password",
message: "<p>We heard that you lost your password. Sorry about that!</p>\n\n<p>But don’t worry! You can use the following link to reset your password:</p>\n<p><%= URL %>?code=<%= TOKEN %></p>\n\n<p>Thanks.</p>"
}
},
email_confirmation: {
display: "Email.template.email_confirmation",
icon: "check-square",
options: {
from: {
name: "Arebyte Plugin",
email: "[email protected]"
},
response_email: "",
object: "Account confirmation",
message: "<p>Thank you for registering!</p>\n\n<p>You have to confirm your email address. Please click on the link below.</p>\n\n<p><%= URL %>?confirmation=<%= CODE %></p>\n\n<p>Thanks.</p>"
}
}
},
type: "object",
environment: null,
tag: null
});