Closed Bug 526001 Opened 15 years ago Closed 15 years ago

Background attached images in signatures

Categories

(Thunderbird :: Message Compose Window, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 116867

People

(Reporter: joaormmota, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4
Build Identifier: 2.0.0.23 (20090812)

It's not possible to crate a mail signature with a background image attached to the message. Using the tip by CombatWombat (http://combatwombat.7doves.com/?tag=thunderbird-email-signatures-background&posts=50) it is possible to use an external image but if you use a file://... image the file is not attached and the reference rewritten in order to point to the attached file.

Reproducible: Always

Steps to Reproduce:
1. Follow instructions http://combatwombat.7doves.com/?tag=thunderbird-email-signatures-background&posts=50 using an existing local image file
Actual Results:  
The html is not modified and the image is not attached

Expected Results:  
The image included in the CSS should be attached and the image reference rewritten
There are really several problems in trying to place a background image in a table, Div (or signature)
The editor was designed to use html backgrounds and avoid styled backgrounds because of perceived compatibility issues with other email clients. This was intentional, although that decision was made many years ago, and those issues are probably gone by now.
The editor has not changed, so expect many problems with styled backgrounds, both in composition and editing.

You can place an image in a sig. and have it convert to a CID but not as a background-image

Example:
<img alt="" src="file:///C:/demogifs/mlogo2.gif" height="20"
 width="28">

There is only one way to compose an HTML background into a table or Div, and that is with a data url

Example:
background="data:image/gif;base64,/..base64 data for the image..."
(the above method will probably only work in TB3)

I'm sure there are several dups of this bug...I'll do a search.

Short answer..You can't do what you want, it's intentional, and it's not likely to change soon.
Marking as dup of a bug that is marked fixed (by dis-allowing styled backgrounds)
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
"avoid styled backgrounds"

What I was trying to do is to code a html signature with a background image. The CSS turnaround was an example of I tried to accomplish this.
Are you saying that TB will not support something so simple as <body bacground="file:/..."> ?
(In reply to comment #3)
> "avoid styled backgrounds"
> 
> What I was trying to do is to code a html signature with a background image.
> The CSS turnaround was an example of I tried to accomplish this.
> Are you saying that TB will not support something so simple as <body
> bacground="file:/..."> ?

Not at all.
<body background is an html attribute, but background-image is a CSS attribute.
The example you used was trying to use a css background.

If you try to use background-image on Body, Div, or Table and point to a local file, the file will not be converted to a CID and included in the mail.
My second example above, is the only way I know of to get a background (HTML) into a Signature without using a remote image.

Format->Page colors and background  will give you a Body background.
Trying to use Styled backgrounds (background-image) are not supported.
"Format->Page colors and background  will give you a Body background."
Don't you see that I'm trying to avoid doing this every time I hit the compose button.
The encoded image (data:image/gif;base64,/..base64 data for the image...) doesn't work on TB2.
You need to log in before you can comment on or make changes to this bug.