We are sending out order confirmation emails programatically using the following code in Magento 2:

# Now send out the emails:
$emailSender = $objectManager->create('\Magento\Sales\Model\Order\Email\Sender\OrderSender');

All of the information is pulling through correctly on the email (and the order is being placed in Magento backend), but when the mail is delivered, it appears as though the template has debug hints on it, despite all template debug options being disabled in the Store config:

enter image description here

What is the reason for this, and how can we disable the red areas on the email template?

1 Answer 1


You can create a transactional email template using the Postcards. I hope this resource will be helpful.

Also, you can download free email templates from GitHub.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.