Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jul : How to embed image in html email using Indy 10

www.cryer.info
Managed Newsgroup Archive

How to embed image in html email using Indy 10

Subject:How to embed image in html email using Indy 10
Posted by:"Darryl Strickland" (dstrickla..@carolina.rr.com)
Date:Tue, 11 Jul 2006 08:51:42

I'm using Indy 10 with D7 and I need to send html emails with embedded
images.  I have searched google and google groups and found a single
reference to a old Indy version that does not work any more.  Can some one
provide me a working sample.

This is old code found on the web.  But using the Indy 10 TidAttachment I
don't know how to pass it the image path like in the old create method.

idAttach := TidAttachment.Create(p, 'c:\sm101yellow.jpg');
    idAttach.ContentType := 'image/jpeg';
    idAttach.ContentDisposition := 'inline';
    idAttach.ExtraHeaders.Values['content-id'] := 'sm101yellow.jpg';


Thanks
Darryl Strickland

Replies:

www.cryer.info
Managed Newsgroup Archive