Jump to content

display HTML email


ratcateme

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.  ;)

Link to comment
Share on other sites

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...  ;)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.