I thought Magento would automatically send emails on new order creation even if the process is done programmatically. But it doesn't.
Re: Send Email & Create Order programmatically on Product page with Custom form. Hi,. I am asking this for Magento 2.
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.
But "payment-infomation" API has no "email-send" options. 0 Kudos.
Try repository for loading order. So your modified class looks like:
How to send an order confirmation email programmatically? How to ...
Magento has an event to send email for order defined in following file. vendor/
magento/module-quote/etc/frontend/events.xml.
For example, the template for the new order transactional email for the
This is intended behavior. If you disable the order e-mails under Configuration -> Sales Emails then no new order e-mails will get send.
Here we learn how to send transactional email programmatically in your