A Resend extension for EverShop.
npm install @evershop/resendA Resend extension for EverShop. This extension is used to send email to customers.
> Note: This version requires EverShop version 2.1.1 or higher.
``javascript`
npm install @evershop/resend
`javascript`
// config/default.json
{
...,
"system": [
...,
"extensions": [
...,
{
"name": "resend",
"resolve": "node_modules/@evershop/resend",
"enabled": true,
"priority": 10
}
]
]
}
Add your Resend API key to the .env file
`env`
RESEND_API_KEY=your_api_key
`javascript``
// config/config.json
{
...,
"system": {
"notification_emails": {
"from": "noreply@example.com",
"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,
}
}
}
}