We help IT Professionals succeed at work.

Thunderbird picking up bgcolor in html attachment as its own background color

steva
steva asked
on
Medium Priority
374 Views
Last Modified: 2008-03-03
I'm trying to send an html attachment with Thunderbird, and I notice
that the message area picks up the background color defined in the html document!
 This happens to be almost black (0x333333) so the black text of the
message is barely visible.  The html attachment is:

<body bgcolor="#333333">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab..."
width="100%" height="100%" id="DataFloodAnimation" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="DataFloodAnimation.swf" /><param
name="quality" value="high" /><param name="bgcolor" value="#333333"
/><embed src="DataFloodAnimation.swf" quality="high" bgcolor="#333333"
width="100%" height="100%" name="DataFloodAnimation" align="middle"
allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>

I just want to send this file as a simple attachment.  I don't want
Thunderbird trying to interpret it and use the bgcolor defined there as its own
background of the text area.  How can stop Thunderbird from doing this?

Thanks,
Steve
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2008

Commented:
Greetings, steva !

Try renaming the attachment to .txt file. Then when recipient receives the attachment, he/she can rename the attachment back to .html to open it.

Best wishes!

Author

Commented:
Yes, that works, but that's not a fix.  Can someone explain why this is happening and how to tell Thunderbird to leave html attachments alonel?

Thanks

Commented:
In TB, try Tools->Options->Composition -> General and select Forward Messages Inline

If that doesn't work, try Tools->Options->Display ->Formatting and at the HTML Messages confirm that Text is set to Black and Background Color is set to White.

Commented:
OK, one more from Here. http://kb.mozillazine.org/Send_attachments_as_real_attachments
Thunderbird normally sends attachments inline (as part of the message body), not as real attachments.

Some recipients will see some of your attachments as part of the message body, even if this makes no sense. For example, if you attach a plain text file, then some recipients will not see an attached file. Instead, they will see the contents of the file at the bottom of your message. If the file is encoded data, then some recipients might see garbage at the bottom of your message.

To send attachments as real attachments, set the value of your mail.content_disposition_type preference to 1. You can do this by using about:config, or by editing your user.js file and adding:

user_pref("mail.content_disposition_type", 1);

After you make this change, Thunderbird sends all files as attachments. Even if you paste a file into the body of an e-mail, some recipients might see it as a separate attachment.


This may be this bug https://bugzilla.mozilla.org/show_bug.cgi?id=65794

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
mtz1of4.

I found bug  76804 also that seems to be relevant.  I think the solution for now is to not try to send html files as attachments.  I'll just zip it.

Thanks for all your suggestions, though.

steve
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.