Article View: borland.public.cppbuilder.internet.socket
Article #4700Re: Indy 8.0 TIdSmptServer
From: Frans
Date: Tue, 04 Jan 2005 18:51
Date: Tue, 04 Jan 2005 18:51
28 lines
2124 bytes
2124 bytes
Sorry but i couldn't find the documentation but i know for
sure i looked wrong after a while googling i found it !
Only i still don't understand the way to filter out the attachments.
Also the body show's the prefix text / preamble instead of the
the body text. I know i'm doing something wrong but i have
now idea what !
void __fastcall TForm1::IdSMTPServer1ReceiveMessageParsed(
TIdCommand *ASender, TIdMessage *&AMsg, TIdEMailAddressList *RCPT,
AnsiString &CustomError)
{
ToLabel->Caption = AMsg->Recipients->EMailAddresses;
FromLabel->Caption = AMsg->From->Text;
SubjectLabel->Caption = AMsg->Subject;
Memo1->Lines = AMsg->Body;
ShowMessage(AMsg->MessageParts->AttachmentCount);
AMsg->SaveToFile("C:\\Documents and Settings\\snarf\\Bureaublad\\test.eml",
false);
}
also the attachment count show's 0 instead of the correct number of
attachments
But if i open the saved email i can actually see and open the attachment
Do i encode the messages the wrong way ?
Frans
Technical Details
Message-ID:
<41dae5ae@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41d950fd@newsgroups.borland.com> <41d98fde$1@newsgroups.borland.com> <41d9aeb2$1@newsgroups.borland.com> <41d9b514@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,7edc2c9797771d27 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Frans" <invalid@wanadoo.nl> Newsgroups: borland.public.cppbuilder.internet.socket References: <41d950fd@newsgroups.borland.com> <41d98fde$1@newsgroups.borland.com> <41d9aeb2$1@newsgroups.borland.com> <41d9b514@newsgroups.borland.com> Subject: Re: Indy 8.0 TIdSmptServer Date: Tue, 4 Jan 2005 19:51:24 +0100 Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 62.234.77.35 Message-ID: <41dae5ae@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1104864686 62.234.77.35 (4 Jan 2005 10:51:26 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail