@evershop/resend
v2.1.2
Published
A Resend extension for EverShop.
Maintainers
Readme
Resend extension for EverShop
A Resend extension for EverShop. This extension is used to send email to customers.
Note: This version requires EverShop version 2.1.1 or higher.
Installation
Step 1: Install the extension package
npm install @evershop/resendStep 2: Register the extension by adding it to the config file
// config/default.json
{
...,
"system": [
...,
"extensions": [
...,
{
"name": "resend",
"resolve": "node_modules/@evershop/resend",
"enabled": true,
"priority": 10
}
]
]
}Step 3: Configure the extension
Add your Resend API key to the .env file
RESEND_API_KEY=your_api_keyStep 4: Configure the email templates
// config/config.json
{
...,
"system": {
"notification_emails": {
"from": "[email protected]",
"order_confirmation": {
"enabled": true,
"templatePath": null, // In case you want to manage email template manually from source code. It should be the relative path from the project root. Missing this field or setting it to null will use the default template from EverShop
},
"customer_welcome": {
"enabled": true,
"templatePath": null,
},
"customer_password_reset": {
"enabled": true,
"templatePath": null,
}
}
}
}