Hello:
To attach an image and display it inline, you must reference it via
its MIME Content-ID from the image tags. For example, when you attach
the image, you create a Content-ID header for that attachment, and use
this ID to replace the image src attribute in the HTML source:
<img src="cid:{IMAGE_CONTENT_ID}">
The SMTP Component does not do this automatically, but I believe that
there's a demo (MailHtml) that shows how to do this.
dZ.
--
DZ-Jay [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
On Nov 27, 2005, at 13:31, walter garcia wrote:
> Hi people...
>
> I try send email format html and attach jpg, this attach found ok, but
> no see image in html..
>
> for example:
>
> HTML CODE
>
> <table width="477" border="0" align="center" cellpadding="1"
> cellspacing="0">
> <tr bgcolor="#FFFFFF">
> <td height="30" colspan="2">
> <div align="center"><font face="Verdana, Arial, Helvetica,
> sans-serif"><font color="#FFFFFF" size="2">
> <img src="ad_mail.jpg" width="701"
> height="142"></font></font></div>
> <div align="center"><font color="#FFFFFF" face="Verdana, Arial,
> Helvetica, sans-serif"><font size="2"></font></font></div></td>
> </tr>
> </table>
>
> DELPHI CODE
>
> ON CLICK BUTTON SEND
> {.. setting smtp..}
>
> FileAttachMemo := TStringList.Create;
> FileAttachMemo.Clear;
>
> FileAttachMemo.Add('ad_mail.jpg');
> smtpcli.EmailFiles := FileAttachMemo;
>
> FileAttachMemo.free;
> ....
>
>
> This email send ok, but no see image en email, is only attach..
>
> Help
>
> thz alot
>
> walter
> --
> 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