[quote user="tmstein"]I would like to have better control on the code so that I could test ...[/quote]
What you feed Pegasus via "import" does make a difference to what it outputs. So you do have some room for manoeuvre, as you'll find out if you do test. I don't normally send HTML, as I've no particular need to, but I just tested to remind myself. I tried three different forms of a fairly simple message. First, I put all styling in the head element:
<style type="text/css">
body { font-family: Verdana, sans-serif;}
.indent { padding-left: 1em; }
h1 { color: #888; background: #FFF; font-size: 18px; }
h2 { color: #005A9C; background: #FFF; font-size: 16px; }
p { font-size: 13px;}
</style>
Secondly, I changed the document so that all of the styling was inline.
Thirdly, I rewrote the document in a very old-fashioned style using "tag soup" HTML, faking up the indents with non-breaking spaces, adjusting the fonts with font "face", "size", and "color" attributes. When I made three emails, in each case importing one of these documents, each email arrived at the other end looking somewhat different.
Not all styles arrive: the indents got lost and most of the font-styling was lost when I used inline HTML. Strangely, the colour of one of the fonts was altered by Pegasus when I used styling in the head of the document. The tag-soup HTML gave the most faithful rendering.
In short, you have got some control, since the email that's sent is different depending on how you code the HTML you import.
In general, I'd say that inline CSS is safer to use in email. (However, my brief test -- if you can call it that -- seems to show that Pegasus doesn't cope well with inline HTML that's sent it via "import" (although it does itself send any styles that it does send as inline).) Simple CSS-styling -- colors, fonts, etc, are likely coped with by most modern clients, so long as they are sent inline. But grotty old font-attributes might be an even safer choice. Maybe you should even abandon the structure given to your document by heading tags and fake headings up with "size" attributes in a old-fashioned "font" tag.
For complex layouts, tables are better than CSS layout -- the latest version of Outlook, among others, is not going to be able to cope with CSS-layouts. (Outlook has actually gone backwards in its capabilities, since it now uses the Office rendering engine not IE.) And it's unsafe to style the "body" tag, because some of your subscribers will undoubtedly be using webmail, and webmail services will strip out the body tags. (They have to because the page the subscriber sees in his browser has "body" tags itself, so they avoid having two sets.)
The rule seems to be: Be as retrograde in your HTML as possible, and there's more chance the receiver will get something that won't trip up his mail client.
<p>[quote user="tmstein"]I would like to have better control on the code so that I could test ...[/quote]</p><p>What you feed Pegasus via "import" does make a difference to what it outputs. So you do have some room for manoeuvre, as you'll find out if you do test. I don't normally send HTML, as I've no particular need to, but I just tested to remind myself. I tried three different forms of a fairly simple message. First, I put all styling in the head element:</p><p>&nbsp;&lt;style type="text/css"&gt;
body { font-family: Verdana, sans-serif;}
.indent { padding-left: 1em; }
h1 { color: #888; background: #FFF; font-size: 18px; }
h2 { color: #005A9C; background: #FFF; font-size: 16px; }
p { font-size: 13px;}
&lt;/style&gt;</p><p>&nbsp;
Secondly, I changed the document so that all of the styling was inline.</p><p>&nbsp;
Thirdly, I rewrote the document in a very old-fashioned style using "tag soup" HTML, faking up the indents with non-breaking spaces, adjusting the fonts with font "face", "size", and "color" attributes. When I made three emails, in each case importing one of these documents, each email arrived at the other end looking somewhat different.</p><p>&nbsp;
Not all styles arrive: the indents got lost and most of the font-styling was lost when I used inline HTML. Strangely, the colour of one of the fonts was altered by Pegasus when I used styling in the head of the document. The tag-soup HTML gave the most faithful rendering.</p><p>In short, you [I]have[/I] got some control, since the email that's sent is different depending on how you code the HTML you import.</p><p>In general, I'd say that inline CSS is safer to use in email. (However, my brief test -- if you can call it that -- seems to show that Pegasus doesn't cope well with inline HTML that's sent it via "import" (although it does itself send any styles that it does send as inline).) Simple CSS-styling -- colors, fonts, etc, are likely coped with by most modern clients, so long as they are sent inline. But grotty old font-attributes might be an even safer choice. Maybe you should even abandon the structure given to your document by heading tags and fake headings up with "size" attributes in a old-fashioned "font" tag.
&nbsp;</p><p> For complex layouts, tables are better than CSS layout -- the latest version of Outlook, among others, is not going to be able to cope with CSS-layouts. (Outlook has actually gone [I]backwards[/I] in its capabilities, since it now uses the Office rendering engine not IE.) And it's unsafe to style the "body" tag, because some of your subscribers will undoubtedly be using webmail, and webmail services will strip out the body tags. (They have to because the page the subscriber sees in his browser has "body" tags itself, so they avoid having two sets.)
</p><p>The rule seems to be: Be as retrograde in your HTML as possible, and there's more chance the receiver will get something that won't trip up his mail client.
&nbsp;</p><p>&nbsp;
&nbsp;</p>