🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #4688

Indy 8.0 TIdSmptServer

#4688
From: Frans
Date: Mon, 03 Jan 2005 14:04
22 lines
1489 bytes
Hello,

I have build a very small emailserver which puts
received emails on disk:

void __fastcall TForm1::IdSMTPServer1ReceiveMessage(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;
AMsg->SaveToFile("test.eml", false);
}

The problem is on AMsg->SaveToFile("test.eml", false);
i get an EAccessViolation, test.eml doens't exists (even
if it exist i get the same error)
Suggestions ?

Frans
Technical Details
Message-ID: <41d950fd@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,7edc2c9797771d27,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Frans" <invalid@wanadoo.nl>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Indy 8.0 TIdSmptServer
Date: Mon, 3 Jan 2005 15:04:44 +0100
Lines: 24
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: <41d950fd@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1104761085 62.234.77.35 (3 Jan 2005 06:04:45 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail