Page 1 of 1

Decode HTML inside twig emails

Posted: Sun Dec 10, 2017 8:04 am
by fadichmn
Hi,

I am using HTML code inside this file:
catalog/view/theme/default/template/mail/register.twig

But the email that are sent to the user is getting the whole raw HTML code.
Is there any trick here or where do i decode the html?

Re: Decode HTML inside twig emails

Posted: Sun Dec 10, 2017 8:36 am
by straightlight
No OC version posted. As for the emails, the default installation of Opencart sends text emails for customer registration templates. However, since there are other features in the platform also using text emails, if you want your store to send HTML emails entirely, see this extension: https://www.opencart.com/index.php?rout ... n_id=21842

Re: Decode HTML inside twig emails

Posted: Sun Dec 10, 2017 10:07 pm
by fadichmn
straightlight wrote:
Sun Dec 10, 2017 8:36 am
No OC version posted. As for the emails.......
How is it possible then that the /catalog/controller/mail/order.php file at line line 364 is using some html decoding?
You can also see the order_add.twig is using html code

Re: Decode HTML inside twig emails

Posted: Sun Dec 10, 2017 11:10 pm
by straightlight
Yet, again, the OC version was not posted which is not possible to answer your last question. Although, there are nowhere to be said nor indicated on my last response that the admin orders does not send HTML emails neither leaving ... so many dots on it but rather indicated that various features are currently sending text and HTML emails throughout Opencart.