cancel
Showing results for 
Search instead for 
Did you mean: 

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

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

Hello all,

 

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?

 

Thanks,

1 REPLY

Re: How to Get email template in dynamically choose format(For example Html Or Text) using magento 2

Use, for example the PHP if control statement to make a email format selection dynamic: http://php.net/manual/control-structures.if.php