I need to get email template in dynamically choose format(For example Html Or Text) while customer order anything in magento 2.
For Examle: Customer account have one option ,which Email template format you want for Html or text. After Customer order something in my site then, then, send email to customer account what format he choosed.
How to achieve this solution? send me a suggestion to do this?
Use, for example the PHP if control statement to make a email format selection dynamic: http://php.net/manual/control-structures.if.php