Enable Background Image with CID

I need to insert an image into HTML email. The image itself already works and is embedded in the mail, as expected, but there is one problem: The picture is shown through: <img src="cid:cidname" width="550" height="95" /> but not with:

<div id="head" style="width:550px; height:95px; margin-bottom:0px; background-image:url(cid:cidname); background-repeat:no-repeat;"></div>

Has anyone understood what might cause the problem?

+3
source share
1 answer

Your syntax is right. Or at least the method supported by many email clients for using inline images in the CSS "background-image" attribute.

, Mozilla Thunderbird, - . : https://bugzilla.mozilla.org/show_bug.cgi?id=254015#c21.

, . 10 :/.

+2

All Articles