Send custom mail on thank-you page

Hello World,

I want to send a mail containing the following { OrderId ~ CustomerId ~ total price ~ customer Email } using Corvid code at thank-you page please help me out.

In order to trigger an email after purchase you can use this event: https://www.wix.com/corvid/reference/wix-stores-backend.Events.html#NewOrderEvent

Please note, that the code needs to be placed in a backend file and not on a Thank You page.

You can use this tutorial to create a triggered email: https://support.wix.com/en/article/corvid-tutorial-sending-a-triggered-email-to-members