The documentation specifies how to add inline attachement, but what is the correct way of referencing it from the html part? Is it possible to include images automatically as it is in other libraries?
Maybe someone has written a little snippet and is willing to share?
...
How do I attach an inline image to the email being sent by ActionMailer? How do I test if image was really attached at a specific place in the Email?
...
Here's my code:
<div class="image">
<img src="image.jpg" alt="Image description" />
<p class="caption">This is the image caption</p>
</div>
Here's my CSS:
.image {
position: relative;
float: right;
margin: 8px 0 10px 10px;
}
.caption {
font-weight: bold;
color: #444666;
}
As is above, the caption will conform to the width of div.i...
I've observed this behaviour on gmail and yahoo, but my concern is gmail anyway.
This is the header of the image mime part that I'm sending.
Content-Type: image/jpeg; name=image0.jpeg
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename=image0.jpeg
Content-ID: <image0>
Gmail seems to modify the headers for some reaso...
I'm trying to load a gif file within my .css file, like this:
li.box_entry {
background-image: url(data:image/gif;base64,R0lGODlhDAANANUAAPv7+/r6+vn5+ff39/b29vX19fPz8/Dw8O/v7+7u7u3t7ezs7Onp6ejo6Ofn5+bm5uTk5OPj4+Hh4eDg4N/f397e3tzc3Nvb29ra2tnZ2dbW1tXV1dPT09LS0tHR0c3NzcjIyMfHx8bGxsXFxby8vLe3t7W1tbOzs62traurq6mpqaioqKenp6ampqWlpaOjo6KioqG...
IE > 7 and others does support Data URI but not IE6 and 7. I found techniques to display inline images by using CSS but the issue is that the images I want to show are Ad banners which will be clickable and also dynamic(rotation banner). how can I use MHTML in a way that I dont have to be Dependant on css?
Update
http://www.phpied.com/...