Switch Theme:

html emails not rendering correctly (sometimes)  [RSS] Share on facebook Share on Twitter Submit to Reddit
»
Author Message
Advert


Forum adverts like this one are shown to any user who is not logged in. Join us by filling out a tiny 3 field form and you will get your own, free, dakka user account which gives a good range of benefits to you:
  • No adverts like this in the forums anymore.
  • Times and dates in your local timezone.
  • Full tracking of what you have read so you can skip to your first unread post, easily see what has changed since you last logged in, and easily see what is new at a glance.
  • Email notifications for threads you want to watch closely.
  • Being a part of the oldest wargaming community on the net.
If you are already a member then feel free to login now.




Made in us
Morphing Obliterator





San Francisco, CA

hi gang,

I've been having an intermittent problem with getting dakka post emails to render correctly in gmail. this has been going on as long as I can remember. here's a screenshot of what I'm talking about:

http://screencast.com/t/YqhyVV8IK3qm

the top message has markup in it, but isn't being parsed as markup for whatever odd reason. the bottom email also seems to have markup in it (I'm basing that off the multi-color text I see), but renders just fine. I haven't noticed any rhyme or reason as to why one email renders ok and another doesn't. I'm using gmail. is this an issue with the emails or a problem with gmail? any way I can fix it?

cheers,

v

Night Lords P&M Blog: http://www.dakkadakka.com/dakkaforum/posts/list/0/502731.page
Salamanders P&M Blog: http://www.dakkadakka.com/dakkaforum/posts/list/0/436120.page

"Sternguard though, those guys are all about kicking ass. They'd chew bubble gum as well, but bubble gum is heretical. Only tau chew gum." - MajorStoffer

"Everytime I see someone write a message in tactics saying they need help because they keep loosing games, I want to drive my face through my own keyboard." - Jimsolo 
   
Made in gb
[ADMIN]
Decrepit Dakkanaut






London, UK

Noted and thanks for the example. Will investigate, though I appreciate it has been this way for many many moons now.

Check out our new, fully plastic tabletop wargame - Maelstrom's Edge, made by Dakka!
 
   
Made in us
Morphing Obliterator





San Francisco, CA

cool, let me know if I can pass on any more info

Night Lords P&M Blog: http://www.dakkadakka.com/dakkaforum/posts/list/0/502731.page
Salamanders P&M Blog: http://www.dakkadakka.com/dakkaforum/posts/list/0/436120.page

"Sternguard though, those guys are all about kicking ass. They'd chew bubble gum as well, but bubble gum is heretical. Only tau chew gum." - MajorStoffer

"Everytime I see someone write a message in tactics saying they need help because they keep loosing games, I want to drive my face through my own keyboard." - Jimsolo 
   
Made in us
Daemonic Dreadnought





Eye of Terror

The issue with rendering html emails comes down to how the forum software is configured to send emails. The messages that are not being rendered properly as HTML emails are missing some headers that allow email readers to properly render them.

When I look at a properly rendered email, it has the following headers which are missing from ones that are just code:

Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

The first one is important, this is what tells your email reader how to parse the message.

Happy to look at the code and determine what's missing, if anyone wants to let me peek at the forum software.

   
Made in gb
[ADMIN]
Decrepit Dakkanaut






London, UK

The mail sending system is just hacks on hacks at the moment. We switched to a new mail server about 9 months ago and since then I've been intending to rewrite that whole mess of code to trim out these sorts of errors and add more useful functionality.

Check out our new, fully plastic tabletop wargame - Maelstrom's Edge, made by Dakka!
 
   
 
Forum Index » Nuts & Bolts
Go to: