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.