win32ole and outlook

V

Vlad Smith

Hi everbody!
I`m trying to send mail which has some embedded images. Everything`s
working great except incoming mail has a blank spaces which are supposed
to be images.

here`s the part of html body I use :

</h2><img src="C:\My Documents\NetBeansProjects\mail\lib\yahoo.gif" ...

message.Attachments.Add('C:\My
Documents\NetBeansProjects\mail\lib\yahoo.gif', 1)


so there`s an attachment but no embedded image

Maybe someone has dealt with something like that, i would be happy to
hear any ideas and suggestions. Thanks!
 
M

melampus

here`s the part of html body I use :
</h2><img src="C:\My Documents\NetBeansProjects\mail\lib\yahoo.gif" ...

If this is the incoming message then your image has not been HTML
embedded but instead your code has inserted a link to a local file
that the receiver of course does not have. You need to use a public
URL for that. For embedding (via mime-type) the immage inside the post
Google "HTML image embedding" or look at fx
http://aspalliance.com/1354_Sending_HTML_Mail_with_Embedded_Image_in_NET.all

~/søren/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top