# Setting up HTML e-mail

**URL:** <https://forum.shopware.com/t/setting-up-html-e-mail/28109>\
**Category:** Shopware 3.5\
**Tags:** general\
**Created:** [13. Juni 2015 um 11:24 UTC](https://forum.shopware.com/t/setting-up-html-e-mail/28109 "2015-06-13T11:24:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GZH](https://avatars.discourse-cdn.com/v4/letter/g/dc4da7/32.png) [@GZH](https://forum.shopware.com/u/GZH)\
**Post date:** [13. Juni 2015 um 11:24 UTC](https://forum.shopware.com/t/setting-up-html-e-mail/28109/1 "2015-06-13T11:24:15Z")

</div>

Hi there, I am trying to set-up HTML e-mail in Shopware. I created an HTML template (using CampaignMonitor) that should display properly in various e-mailclients. The template, when saved as an HTML file, looks okay when I open it in my browser. However, when I paste the exact same code in a Shopware e-mail template, I get the following error message (I have added line breaks in the error message to make it easy to read): `Syntax Error 8d" on line 895 "@import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,700,400); @import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,700,400); @import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,700,400); @import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,700,400); @import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,700,400); body,.wrapper,.emb-editor-canvas{ background-color:#fbfbfb } .border{ background-color:#e9e9e9 } h1{ color:#565656 } .wrapper h1{ } .wrapper h1{ font-family:sans-serif } @media only screen and (min-width: 0){ .wrapper h1{ font-family:"Open Sans",sans-serif !important }} h1{ } .one-col h1{ line-height:44px } .two-col h1{ line-height:34px } .three-col h1{ line-height:28px } .wrapper .one-col-feature h1{ line-height:58px } @media only screen and (max-width:" - Unexpected ":", expected one of: "}" , " " , ATTR` The complete code of the HTML e-mail I am using can be found here (feel free to use the code for your own project if you like): [http://pastebin.com/S2rJR7hH](http://pastebin.com/S2rJR7hH). Does anyone have an idea what I am missing and what would be a solution? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![GZH](https://avatars.discourse-cdn.com/v4/letter/g/dc4da7/32.png) [@GZH](https://forum.shopware.com/u/GZH)\
**Post date:** [13. Juni 2015 um 12:33 UTC](https://forum.shopware.com/t/setting-up-html-e-mail/28109/2 "2015-06-13T12:33:08Z")

</div>

I just found out what went wrong: apparently, the code I used missed some spaces between CSS tags. Not a problem for Safari, but Shopware wants me to be a little more precise 🙂 Adding spaces solved my problem!
