Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: incrediBILL
If you are doing it and your webpage is being attached instead of in the body of the email
Either the web page or the email body are just mime types as much email today is HTML by default (unless you go retro email like I do) so what you attach really doesn't matter.
Inline CSS works but you can also include a link to the CSS file on your server in the HTML which makes the emails smaller, just like linking all the images to the remote server.
Also consider using the base href tag in your pages <base href="http://www.example.com/" /> so that anything relative that you overlook will load from your server as well.
The only downside to this approach is offline reading of the email has no formatting or images but they're tiny and don't clog mail delivery systems.
[edited by: incrediBILL at 3:39 pm (utc) on June 7, 2009]
divs and floats and most browser based layout CSS are not supported and blow up in outlook 2007, only text and old html 3.0 table-based layout and inline style tags work properly.
Leave it to MS to step backwards a few years just to further annoy developers.
I had to revise the code that generates all of our apartment listings subscriber email flyers ... I had forgotten how to code with tables and markup styles, and the worse the code got the better Outlook displayed it.
I am starting to think Microsoft just does this stuff on purpose.
Beware using CSS layout for email body html ... if you Google "outlook 2007 and css" you will at least find what minimal CSS is actually supported.