Send mail on pending payment status

Hello there!

I’m trying to send an email with payment information when the order is established with an offline payment method. Normally, Magento is sending the email when the payment is successful but I need to send an email when the order is placed and its status is “pending_payment”.

Have somebody been working on this functionality and could give me any advice to reach it?

I tried to put a “sales_order_place_after” event but I couldn’t get this functionality. Could someone share me a tutorial or guide to send emails when an event occurs?


P/D: My Magento version is 2.3.5-p1.

submitted by /u/matutee2208
[link] [comments]