I want to send a custom email template, plain only, to an email address when an order is received. The plugin works fine but the email contains html code and it’s difficult to read.
It shows like this:
<p>Pay at delivery.</p>
<h2>
[Order no. 0123] (sept 12, 2022)</h2>
<div style=”margin-bottom: 40px;”>
<table class=”td” cellspacing=”0″ cellpadding=”6″ style=”width: 100%; font-family: ‘Helvetica Neue’, Helvetica, Roboto, Arial, sans-serif;” border=”1″>
<thead>
<tr>
<th class=”td” scope=”col” style=”text-align:left;”>Produs</th>
<th class=”td” scope=”col” style=”text-align:left;”>Cantitate</th>
<th class=”td” scope=”col” style=”text-align:left;”>Preț</th>
</tr>
</thead>
<tbody>
<tr class=”order_item”>
<td class=”td” style=”text-align:left; vertical-align: middle; font-family: ‘Helvetica Neue’, Helvetica, Roboto, Arial, sans-serif; word-wrap:break-word;”>
………
I did some more tests:
I changed from woo settings -> emails -> new order to plain from html. On the primary address (the one that we normally receive the orders) all looks plain, no html code. On the email address that I inserted on your plugin form, it shows all the html code.
In email content I only use this:
[order_details]
WC email template, wrap is not checked.
Plain text is checked at email type.
Did I understand wrong what plain text does? What can I do for this to accomplish?