Here is the background: the images in HTML e-mail should be referenced using the special URI scheme
" (Content-id). Please see:
The e-mail should be a multipart e-mail. Some parts could be HTML documents and some — base64-encoded images. To reference an image in one part in HTML part, HTML code <
> tag should reference the image as
should be the same as
of the image part to be referenced and thus rendered as inserted in HTML document.
This example illustrates using this technique for creation of e-mail with C# and .NET:
(This is a pretty dumb code; it uses a placeholder
"@@IMAGE@@" in the HTML code to be replaced with actual value for content id using
string.Replace, instead of, say, using
string.Format. It has nothing to do with the idea of embedding the images.)
I found this example using this query: http://bit.ly/zpvER5
If you need more advanced example, try to find some more; it returned just about 227,000 results.