ratcateme Posted September 5, 2008 Share Posted September 5, 2008 I am building a Webmail app and i have a small problem with emails from clients like Outlook they create full HTML emails with <html>,<head> and <body> tags. i need to display them but will it stuff up the rest of my page if i just output it into a table cell with all of the <html>,<head> and <body> tags still in place or so i need to filter them out? Scott. Quote Link to comment Share on other sites More sharing options...
haku Posted September 6, 2008 Share Posted September 6, 2008 filter them out. You should also be cleaning the mails for any harmful tags/scripts - meaning you should probably filter all <script > tags. Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted September 6, 2008 Share Posted September 6, 2008 Html email is extremely complex. You need to create multipart emails and use tables for most of your html markup. You need to know how to embed css styles right into your html markup. You need to test your email in gmail and hotmail, and not in outlook express. Outlook express is the best email program in rendering html emails. Quote Link to comment Share on other sites More sharing options...
haku Posted September 6, 2008 Share Posted September 6, 2008 He isn't trying to create HTML mails, he is trying to display them. Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted September 6, 2008 Share Posted September 6, 2008 ooops. The question was worded very confusingly. If you are creating an email app then you should probably go to yahoo and see how they do it. Yahoo has the best support in html email rendering. What it does is put everything in a div, and make tags like <html> become <xhtml> and <body> to become <xbody>. A simple google search will tell you exactly what to do. Quote Link to comment Share on other sites More sharing options...
ratcateme Posted September 6, 2008 Author Share Posted September 6, 2008 Thanks for the help guys i have signed up to a few webmail apps around and i think i might go with a <iframe> it semes easiest Scott. Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted September 6, 2008 Share Posted September 6, 2008 Thanks for the help guys i have signed up to a few webmail apps around and i think i might go with a <iframe> it semes easiest Scott. I disagree. The reason yahoo puts everything in a div and doesn't do the iframe thing is because a person could send things like <title> <meta> <styles> (external) ones that would override what you have specified. Maybe w/ iframes you can do something to overcome "overriding" of head tags, but if you ask me, it would just be easier to run a message through php and change all the tags into something that you could use... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.