How to Get email template in dynamically choose format(For example Html Or Text) using Magento 2?

Magento Asked by Rajkumar .E on November 9, 2020

I need to get email template in dynamically choose format(For example Html Or Text) while customer orders anything in Magento 2.

For Example:
Customer account has one option, which Email template format you want for Html or text. After Customer order, something in my site then, send email to customer account what format he chose.

How to achieve this solution? send me a suggestion to do this?


One Answer

There is two methods to create email template as well magento 1x.

  1. Create your own html and place in email template.
  2. Generate email template based on default template.

Also you can write inline css or external style as given in magento.

you can find email header and footer and css files files form the following path and override in your theme.



Answered by Suryakant on November 9, 2020

Add your own answers!

Related Questions

Magento 2 Create Controller With No Theme?

1  Asked on October 2, 2021 by joeybab3


How does the cache work in Magento2?

1  Asked on October 2, 2021 by chdzma


How to setup Magento 2.x with Asynchronous Messaging using Docker

0  Asked on October 2, 2021 by praveen-kumar-s


Admin GRID Not Showing Data with ui_component

1  Asked on October 2, 2021 by shoaib-munir


Exclude child products from search in magento 2.3.2

0  Asked on October 2, 2021 by rajeev-singh


How to update customer information directly in the database

1  Asked on October 2, 2021 by darrell-brogdon


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir