Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Mar : Indy9 <=> Indy10 differences...
| Subject: | Indy9 <=> Indy10 differences... |
| Posted by: | "Bo Berglund" (bo.berglu..@telia.com) |
| Date: | Fri, 30 Mar 2007 01:07:16 |
I have now worked my way down through old code and added conditionals
for Indy 10 to make it compile both in D7 (Indy9) and BDS2006
(Indy10).
Now I have a problem I can't solve:
Original code:
with TIdAttachment.Create(IdMessage.MessageParts, sTmp) do
begin
FileName := ExtractFileName(sTmp);
ContentType := 'application/x-zip-compressed';
end;
Barfs at the TIdAttachment identifier...
What do I do in Indy10 to accomplish the same?
I am attaching a zipfile to a TIdMessage that will get sent out using
a TIdSmtp object.
/Bo (sleepy.....)