Open Bug 277925 Opened 20 years ago Updated 2 years ago

Table background image in mail not attached to mail for sending

Categories

(MailNews Core :: Composition, defect)

defect

Tracking

(Not tracked)

People

(Reporter: adriaan, Unassigned)

References

Details

When creating an e-mail template, one can specify a background image. This image
will be included in the template, and something like:

<body background="cid:part1.01090400.09010602@domain.com">

will be used to specify the background image. The image itself is included in
MIME code.

However, when speciying a background image, the image is tiled, and I only want
it to show once.

But, when specifying a background image for a table, an absolute link to the
file on the local harddisk or IMAP folder is created. The recipient doesn't see
the background image. Even when I insert the background image, save the
template, and manually edit the template to contain:

<table background="cid:part1.08040101.06040502@dubocomfort.nl">

Thunderbird changes the link to an absolute link while the mail is sent.

As a workaround I'm using a large transparent background image with only the top
left corner filled in.
See also bug 280480.  One possible workaround to the tiling problem would be to 
use CSS to specify the background image; however, background images specified 
via CSS are similarly not handled correctly, per that bug.
Status: UNCONFIRMED → NEW
Component: General → MailNews: Composition
Ever confirmed: true
OS: Windows 2000 → All
Product: Thunderbird → Core
Hardware: PC → All
Summary: absolute URL for table background image in mail template → Table background image in mail not attached to mail for sending
Version: 1.0 → Trunk
*** Bug 320372 has been marked as a duplicate of this bug. ***
I trying lots of things. For example the last:
<table background="data:image/gif;base64,......">
or
<td background="data:image/gif;base64,......">

The "cid:..." style allways converted to absolute file location when I send e-mail. 
The "data:..." looks like fine, but only while I compose the message. This URI not works in the message window! I don't understand it, because the reopen the message the compose window parsed correctly.
*** Bug 353295 has been marked as a duplicate of this bug. ***
Sorry for the bug spam, and I realize this is not a support forum, but these issues should really be addressed.
There are work-arounds to get the effects that you want, but they require a little knowledge of CSS. You can make use of a remote image storage service (free) such as imageshack to make this work: http://www.imageshack.us/ is an example.
Copy the following code into your html composition using  |Insert | html
<table style="background-image: url(http://img253.imageshack.us/img253/37/tb150pw.jpg); background-repeat: no-repeat;" align="center" border="1" cellpadding="2" cellspacing="2" height="214" width="1004"><tbody><tr><td style="" valign="top"><br></td></tr></tbody></table>
You will see that the background image from the remote source is included in you composition.
Other methods are available to use embedded content, but they require editing the CAPS policies to allow Javascript a little more freedom.
I came here from Bug 353295. And I think this is my problem in Thunderbird 1.5.0.8  German.
Thunderbird does not at all handle the background image correctly!
You can't forward a message with background, can't create such a message without losing the picture on sending the message.

I'm no CSS freak and I don't use backgrounds myself, but I want to be able to forward such messages "as they arrive"

Since I see, how old this bug is, I just would like to know, if you're going to solve this?

best regards Göran.
Assignee: mscott → nobody
QA Contact: composition
Product: Core → MailNews Core
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.