[EMAIL PROTECTED] wrote: > Hello, > > I've a little problem when sending an e-mail with images. > Ii'want create an e-mail with an image into the body of message, like > thunderbird > when you use menu insert -> image. > I've tried htmlsmtp.EmailImages.text with ContentType := smtpHtml, but > when > receive the message the image is an attachment. > Anyone know how i can resolve this problem ?
Add a valid img tag somewhere in your HTML message part, where 'n' is the index of EmailImages list, if I recall it right. <p><img src="cid:n"> MyImage</p> Also take a look at ICS-Root\Delphi\Internet\MailHtml.dpr Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be