Showing images inline: D7 Indy 9 TIdAttachment

Giganews Newsgroups
Subject: Showing images inline: D7 Indy 9 TIdAttachment
Posted by:  Eric Carlson (eric.removethis.carlson@group-technical-andthis.com)
Date: Fri, 22 Sep 2006

This code:
attachImage := TIdAttachment.Create(MailMessage.MessageParts,
imageFilename);
attachImage.ContentType := 'image/jpeg';
attachImage := TIdAttachment.Create(MailMessage.MessageParts, 'image.jpg');
attachImage.ContentType := 'image/jpeg';
SMTP.Send(MailMessage);

Results in Thunderbird showing the image inline. Outlook doesn't - you have
to click it to open it.
I'd like both to show inline. Is there something I missed in the code
please? Thanks.

Replies