> I'm trying to add a link in my e-mail text/body to the attached 
> file, and I belive I could to this with the following html tag 
> <ahref=\"cid:" + atch.ContentId + "\">file</a>
> 
> For that, I need the ContentId of the attached file. Using 
> TSmtpCli, is there a way to get this ID?

ContentId is an optional multipart MIME header.  

So you need to MIME decode your email content using TMimeDecode, and
read the PartContentID property from the events or use TMimeDecodeEx
which decodes the whole file into part information records, where it's
PartInfos[x].PContentId. 

There's MIME sample OverbyteIcsMimeDemo.dpr that illustrates this, and
one of the sample MIME files may have contentids.

I use all this in my MailMaint application to display HTML email. 

Angus

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to