# Test Email Works. Email Sent Loses Styling.

**URL:** <https://forum.mautic.org/t/test-email-works-email-sent-loses-styling/9977>\
**Category:** Product Support\
**Created:** [November 24, 2017, 10:32pm UTC](https://forum.mautic.org/t/test-email-works-email-sent-loses-styling/9977 "2017-11-24T22:32:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![theatereleven](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@theatereleven](https://forum.mautic.org/u/theatereleven)\
**Post date:** [November 24, 2017, 10:32pm UTC](https://forum.mautic.org/t/test-email-works-email-sent-loses-styling/9977/1 "2017-11-24T22:32:44Z")

</div>

Running into something weird. I’m on Mautic 2.11.0. Create an email that can be sent out to a segment. I’m using code mode and referencing an external style sheet. When save changes and send the test email, all formatting looks perfect. When I then publish the email and send to a segment, all formatting from the style sheet is lost. Just doesn’t make sense. I’ve tried more than once - very weird.

---

<div class="post-metadata">

**Author:** ![theatereleven](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@theatereleven](https://forum.mautic.org/u/theatereleven)\
**Post date:** [November 24, 2017, 10:32pm UTC](https://forum.mautic.org/t/test-email-works-email-sent-loses-styling/9977/2 "2017-11-24T22:32:44Z")

</div>

Running into something weird. I’m on Mautic 2.11.0. Create an email that can be sent out to a segment. I’m using code mode and referencing an external style sheet. When save changes and send the test email, all formatting looks perfect. When I then publish the email and send to a segment, all formatting from the style sheet is lost. Just doesn’t make sense. I’ve tried more than once - very weird.

---

<div class="post-metadata">

**Author:** ![chris0928](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/chris0928/32/118_2.png) [@chris0928](https://forum.mautic.org/u/chris0928)\
**Post date:** [November 25, 2017, 5:46pm UTC](https://forum.mautic.org/t/test-email-works-email-sent-loses-styling/9977/3 "2017-11-25T17:46:07Z")

</div>

@theatereleven external style sheets are generally not supported in email. CSS has to be internal (within style tag in head) and/or inlined.

[https://litmus.com/blog/a-guide-to-css-inlining-in-email](https://litmus.com/blog/a-guide-to-css-inlining-in-email)

[https://www.campaignmonitor.com/css/](https://www.campaignmonitor.com/css/)

---

<div class="post-metadata">

**Author:** ![theatereleven](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@theatereleven](https://forum.mautic.org/u/theatereleven)\
**Post date:** [November 25, 2017, 6:39pm UTC](https://forum.mautic.org/t/test-email-works-email-sent-loses-styling/9977/4 "2017-11-25T18:39:34Z")

</div>

Oh, okay. I did not know that. The weird thing is that’s it’s been working fine for awhile. Thank you!

---

<div class="post-metadata">

**Author:** ![chris0928](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/chris0928/32/118_2.png) [@chris0928](https://forum.mautic.org/u/chris0928)\
**Post date:** [November 25, 2017, 6:49pm UTC](https://forum.mautic.org/t/test-email-works-email-sent-loses-styling/9977/5 "2017-11-25T18:49:14Z")

</div>

🙂

---

<div class="post-metadata">

**Author:** ![theatereleven](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@theatereleven](https://forum.mautic.org/u/theatereleven)\
**Post date:** [November 25, 2017, 6:56pm UTC](https://forum.mautic.org/t/test-email-works-email-sent-loses-styling/9977/6 "2017-11-25T18:56:27Z")

</div>

That worked! Just did another and put the styles inside. I just wish I knew what had changed, and also why the test email works and the “real” one doesn’t. Really need Mautic to offer a template email option, so we can save styling in one place and apply it easily to emails.
