|Subject:||Re: IdSMTPServer OnMsgReceive event: AMsg TStream variable not populated|
|Posted by:||mysticforces (paul.four…@malans.co.za)|
|Date:||Wed, 4 Apr 2007|
> I'm using version 10.1.5
> This is my code for the IdSMTPServer.OnMsgReceive event:
> procedure TForm1.IdSMTPServer1MsgReceive(ASender: TIdSMTPServerContext;
> AMsg: TStream; var LAction: TIdDataReply);
> lsStr: TStringList;
> lsStr := TStringList.Create;
> IdMessage1.From.Address := ASender.From;
> LAction := dOk;
> I know it's crude, so please, no comments on how I should code it better. I
> 'm experimenting at this stage of the project.
> My point is, the AMsg variable passed through by the event doesn't have the
> 'message' I'm expecting. Is there some other place to retrieve the email bo
> dy? The TStream is totally blank when I evaluated it. Size = 0.
> The message gets sent successfully, but without any subject or body.
> Will 10.1.6 fix the problem?
Woops, sorry, wrong newsgroup, please ignore
IdSMTPServer OnMsgReceive event: AMsg TStream variable not populated posted by mysticforces on Wed, 4 Apr 2007