Send Cancelled Order Email

amerta


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:

  1. An admin notification email to alert site administrators of the cancellation
  2. 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>

Async