Seth Randall wrote:
My guess would be that they're sending HTML mail only with no
text/plain part and you have the Display Option "Show HTML Version by
Default" set
to no.
Not always. Using 1.4.2 with html version shown by default, here are
some recent headers -- *Content-Type:* text/html; charset=us-ascii
What do you mean not always? This email is exactly what Marc guessed
-- html only.
Mark's guess was a 2 parter -- html-only, *and* show html default set
to no.
Actually Ean hammered it, and nailed the answer -- "SM requires the
'MIME-Version: 1.0' header"
That's good to know and I appreciate it. I have not been putting this
header into PHP generated mail, and never knew there was a problem 'till I
got to playing with the squirrel. I guess I'll add this header to any
future PHP generated email.
It's worth noting, the MIME-Version restriction isn't so much SquirrelMail as some
IMAP servers. Some will say a message is plain/text if there's no MIME-Version,
others don't care. SquirrelMail trusts the IMAP server, mostly because it's a great
deal faster. The View as HTML plugin will look at the Content-Type regardless if that
helps anyone.
Seth.
This topic isn't worth too much space, but it is interesting, and
getting things right is worthwhile. However, my IMAP server never
changes (courier). Mozilla and Outlook both snag mail from the IMAP
server, both render PHP generated mail fine as html mail. The only one
that does not is the squirrel. The squirrel wouldn't do it even though
the Content-Type was correct. What made the squirrel wake up was adding
the MIME-Version: 1.0 to the headers in my PHP script. That was the only
change that was made, and it worked, and made the squirrel read the
email as type text/html. I don't know if it's a good thing or a not so
good thing, but the squirrel will not render messages as html without
this header. Other clients will, and it has got nothing to do with my
courier IMAP server. At least, that's how I interpret the results.
Thanks!
Robert
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users