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.
try using $orderid = '000000003'; $objectManager = \Magento\Framework\App\ ObjectManager::getInstance(); $order ...
https://www. metagento.com/blog/magento-2-send-email-programmatically.html.
Try repository for loading order. So your modified class looks like:
How to send email and create order programmatically on Product page custom form? Solved! Go to Solution. Labels: magento2.
Custom Field From Quote Item to Order Item · Create order programmatically in Magento 2 ...
How to programmatically detect the sales transactional email sending process? How are the «send_email» (setSendEmail, getSendEmail) / «email_sent» ( ...
Magento 2- Send transactional email programmatically in your
How to Send Magento 2 Order Confirmation Email After Payment Success · · < config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
for more info when-creating-an-order-via-the-magento2-rest-v1-api-can-i -