Send Cancelled Order Email
amerta / amerta/payload/utilities/emails/sendOrderEmail / sendCancelledOrderEmail
Function: sendCancelledOrderEmail()
sendCancelledOrderEmail(
customer,order):Promise<void>
Defined in: amerta/payload/utilities/emails/sendOrderEmail.ts:65
Sends a cancelled order notification email to both admin and customer.
This function sends two emails:
- An admin notification email to alert site administrators of the cancellation
- A customer notification email confirming the order cancellation
Parameters
| Parameter | Type | Description |
| ------ | ------ | ------ |
| customer | Customer | The customer whose order was cancelled |
| order | Order | The cancelled order object |
Returns
Promise<void>