Closed (duplicate)
Project:
Mime Mail
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Jan 2009 at 23:32 UTC
Updated:
1 Apr 2010 at 18:12 UTC
Hi,
One way, to convert all background image in mail.css
The modified preg:
$pattern = '/(<link[^>]+href=[\'"]?|<object[^>]+codebase=[\'"]?|@import |src=[\'"]?|url\s*[(][\'"]?)([^\'>)"]+)([\'"]?)/emis';
This work in my site,
i use the full path to image in css :
background: transparent url("/sites/all/themes/theme_name/images/image.jpg") repeat-y top left;
Please TESTING FIRST!
Comments
Comment #1
joostvdl commentedIt creates a new URL for the background image with a cid:..... but the images are not attached to the mail. Which might have to do with the fact that FILE_DOWNLOADS are private.
Comment #2
sgabe commentedDuplicate of #108573: Embed CSS images.