Hi Solution of this problem is one line of code: HtmlSmtpClient.EmailImages.Clear;
Now, it is working. Sorry, I should know that ;) Regards Paweł ----- Original Message ----- From: "Paweł (WP)" <[EMAIL PROTECTED]> To: "ICS support mailing" <twsocket@elists.org> Sent: Saturday, February 25, 2006 2:06 PM Subject: [twsocket] Images in HTML formatted email - incorrect enumeration<IMAGEn> Hi My program is using demo of THtmlSmtpClient component. I have a little problem. I have two images in email. In HTML message code it is: ... <IMG src="cid:'+'IMAGE1'+'" width="90" height="88" border="0" alt="alt"> and <IMG src="cid:'+'IMAGE2'+'" width="90" height="88" border="0" alt="alt"> ... And then in SendButton procedure I have { Give the component the various data he need } HtmlSmtpClient.PlainText := nil; HtmlSmtpClient.HtmlText := EmailBody; //html message code HtmlSmtpClient.EmailImages.Add(PathToImage1); HtmlSmtpClient.EmailImages.Add(PathToImage2); { Initialize all SMTP component properties from our GUI } HtmlSmtpClient.Host := SmtpServerName; HtmlSmtpClient.Port := IntToStr(SmtpServerPort); HtmlSmtpClient.FromName :=UserName + ' <'+UserEmail+'>'; HtmlSmtpClient.HdrSubject :=TematWiadomosciE.Text; ... When I click This button mail is sending. Everything is OK. But, when mail is sent and if I click again button that sending next email there is an error. In html message code it is still ... "cid: image1", but in code of ICS (I can see it in log, example: > Content-Type: image/gif; name="image2.gif" > Content-Transfer-Encoding: base64 > Content-Disposition: inline; filename="image2.gif" > Content-ID: <IMAGE3> <-- here is incorrect - it should be <IMAGE2> ) the Image = Image3 and Image4. That is not correct - It should be again Image1 and Image2. So, how to change this? I hope You understand what I mean... Thanks in advance. Paweł Porwisz -- 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 -- 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