Forum: Ruby win32ole and outlook

Posted by Vlad Smith (neverhood)
on 2009-07-03 11:22
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!
Posted by melampus (Guest)
on 2009-07-04 11:40
(Received via mailing list)
> 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/
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.