Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>OK, I'll send the answer here though I think You should do a more research and try something for Yourself. Usually a mail for customer is sent with this piece of code:</p> <pre><code>$mail = new Mail(); $mail-&gt;protocol = $this-&gt;config-&gt;get('config_mail_protocol'); $mail-&gt;parameter = $this-&gt;config-&gt;get('config_mail_parameter'); $mail-&gt;hostname = $this-&gt;config-&gt;get('config_smtp_host'); $mail-&gt;username = $this-&gt;config-&gt;get('config_smtp_username'); $mail-&gt;password = $this-&gt;config-&gt;get('config_smtp_password'); $mail-&gt;port = $this-&gt;config-&gt;get('config_smtp_port'); $mail-&gt;timeout = $this-&gt;config-&gt;get('config_smtp_timeout'); $mail-&gt;setTo($order_info['email']); $mail-&gt;setFrom($this-&gt;config-&gt;get('config_email')); $mail-&gt;setSender($order_info['store_name']); $mail-&gt;setSubject(html_entity_decode($subject, ENT_QUOTES, 'UTF-8')); // THIS IS THE IMPORTANT PART $mail-&gt;setHtml($html); $mail-&gt;setText(html_entity_decode($text, ENT_QUOTES, 'UTF-8')); // END OF IMPORTANT PART $mail-&gt;send(); </code></pre> <p>As You can see the two lines marked with a comment are setting the e-mail's HTML <strong>and</strong> TXT body, while with e-mails sent to admins only the TXT body is set:</p> <pre><code> $mail = new Mail(); $mail-&gt;protocol = $this-&gt;config-&gt;get('config_mail_protocol'); $mail-&gt;parameter = $this-&gt;config-&gt;get('config_mail_parameter'); $mail-&gt;hostname = $this-&gt;config-&gt;get('config_smtp_host'); $mail-&gt;username = $this-&gt;config-&gt;get('config_smtp_username'); $mail-&gt;password = $this-&gt;config-&gt;get('config_smtp_password'); $mail-&gt;port = $this-&gt;config-&gt;get('config_smtp_port'); $mail-&gt;timeout = $this-&gt;config-&gt;get('config_smtp_timeout'); $mail-&gt;setTo($this-&gt;config-&gt;get('config_email')); $mail-&gt;setFrom($this-&gt;config-&gt;get('config_email')); $mail-&gt;setSender($order_info['store_name']); $mail-&gt;setSubject(html_entity_decode($subject, ENT_QUOTES, 'UTF-8')); // THIS IS THE IMPORTANT PART $mail-&gt;setText(html_entity_decode($text, ENT_QUOTES, 'UTF-8')); // END OF IMPORTANT PART $mail-&gt;send(); </code></pre> <p>So here, in admin mail sending section, add this line:</p> <pre><code>$mail-&gt;setHtml($html); </code></pre> <p>before</p> <pre><code>$mail-&gt;setText(html_entity_decode($text, ENT_QUOTES, 'UTF-8')); </code></pre> <p>and You should be done. Do not forget to change the <code>$subject</code> and <code>$text</code> variables with Yours...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload