Welcome to WebmasterWorld Guest from 54.205.115.177

Forum Moderators: incrediBILL

Message Too Old, No Replies

Emailing HTML Web page

   
11:33 pm on Jun 5, 2009 (gmt 0)

5+ Year Member



There is a lot of people wondering how to Email a Webpage and their have been long discussions about it but I think that a simple answer should help allot of people. If you are doing it and your webpage is being attached instead of in the body of the email, the very first thing you should know is that inline CSS StyleSheeting is a quick fix.
8:13 am on Jun 7, 2009 (gmt 0)

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



A link to a page would be even simpler. ;)
3:37 pm on Jun 7, 2009 (gmt 0)

WebmasterWorld Administrator incredibill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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]

6:24 pm on Jun 16, 2009 (gmt 0)

5+ Year Member



I assume it was discussed here somewhere how Outlook 2007 doesn't use IE as their html rendering engine anymore ... they use WORD 2007!

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.