# Mautic adds HTML style code in emails

**URL:** <https://forum.mautic.org/t/mautic-adds-html-style-code-in-emails/5101>\
**Category:** Product Support\
**Created:** [August 29, 2016, 6:19am UTC](https://forum.mautic.org/t/mautic-adds-html-style-code-in-emails/5101 "2016-08-29T06:19:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kristyna](https://avatars.discourse-cdn.com/v4/letter/k/f05b48/32.png) [@Kristyna](https://forum.mautic.org/u/Kristyna)\
**Post date:** [August 29, 2016, 6:19am UTC](https://forum.mautic.org/t/mautic-adds-html-style-code-in-emails/5101/1 "2016-08-29T06:19:08Z")

</div>

I have a problem with emails Mautic 2.1.0. and also 2.1.1. I am using a custom email template. When I copy the HTML code to Mautic email editor, it adds:  
  
style=“border: 1px solid rgb(221, 221, 221);” to every

 tag  
  
and style="-webkit-user-select: none;" to every tag.  
  
  
  
I need to disable it somehow because it really messes the email style.

---

<div class="post-metadata">

**Author:** ![Kristyna](https://avatars.discourse-cdn.com/v4/letter/k/f05b48/32.png) [@Kristyna](https://forum.mautic.org/u/Kristyna)\
**Post date:** [August 29, 2016, 6:19am UTC](https://forum.mautic.org/t/mautic-adds-html-style-code-in-emails/5101/2 "2016-08-29T06:19:08Z")

</div>

I have a problem with emails Mautic 2.1.0. and also 2.1.1. I am using a custom email template. When I copy the HTML code to Mautic email editor, it adds:  
style=“border: 1px solid rgb(221, 221, 221);” to every

 tag  
and style="-webkit-user-select: none;" to every tag.

I need to disable it somehow because it really messes the email style.

---

<div class="post-metadata">

**Author:** ![st21](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@st21](https://forum.mautic.org/u/st21)\
**Post date:** [September 20, 2016, 3:46am UTC](https://forum.mautic.org/t/mautic-adds-html-style-code-in-emails/5101/3 "2016-09-20T03:46:57Z")

</div>

the same problem

---

<div class="post-metadata">

**Author:** ![coh998](https://avatars.discourse-cdn.com/v4/letter/c/fbc32d/32.png) [@coh998](https://forum.mautic.org/u/coh998)\
**Post date:** [September 20, 2016, 3:22pm UTC](https://forum.mautic.org/t/mautic-adds-html-style-code-in-emails/5101/4 "2016-09-20T15:22:10Z")

</div>

Mastic’s content editor is changing custom html code on save. I can only speculate on why, but there doesn’t seem to be a fix coming anytime soon. One workaround is to paste your custom code directly into the sql table. It’s clunky and takes some figuring out of exactly where to find the right field if you’re not an sql jockey, but it does work.

---

<div class="post-metadata">

**Author:** ![imap](https://avatars.discourse-cdn.com/v4/letter/i/c4cdca/32.png) [@imap](https://forum.mautic.org/u/imap)\
**Post date:** [November 5, 2016, 4:36pm UTC](https://forum.mautic.org/t/mautic-adds-html-style-code-in-emails/5101/5 "2016-11-05T16:36:33Z")

</div>

Did someone find a better solution?

I find it very uncomfortable to have to modify every email in sql
