I thought Magento would automatically send emails on new order creation even if the process is done programmatically. But it doesn't.
Look at Magento\Sales\Model\Order\Email\Sender\OrderSender . This is where you'll find the method to send the order confirmation for a given order.
https://www. metagento.com/blog/magento-2-send-email-programmatically.html.
Try repository for loading order. So your modified class looks like:
Check Magento default purchase order functionality, it will help to ...
Create order programmatically in Magento 2 · Magento 2 Module load order ...
Hi, How can I stop order email confirmation programmatically, when place order ... But "payment-infomation" API has no "email-send" options.
How to send an order confirmation email programmatically? · How to make the transactional email being sent asynchronously or synchronously? · How to ...
And Magento stopped sending order configuration emails to me, since I have disabled it. Is there a way to configure Magento to send order ...
To send email confirmation on successful order payment, we need to tie Magento 2 observer with an event of ...