Cant recieve plain mails

Giganews Newsgroups
Subject: Cant recieve plain mails
Posted by:  Niels (…@mutax.dk)
Date: Wed, 11 May 2005

Hello

I have a problem with Delphi 7 / Indy 9.0.18

I can recieve HTML mails, but when it comes to plain text I cant read them.
I have these properties:

IdSMTPServer1.NoDecode := False;
IdSMTPServer1.NoEncode := True;

Can anybody help?

procedure TForm1.IdSMTPServer1ReceiveMessageParsed(ASender: TIdCommand;
  var AMsg: TIdMessage; RCPT: TIdEMailAddressList;
  var CustomError: String);
begin
Memo1.Text := AMsg.Body.Text;
Edit2.Text := AMsg.Subject;
Edit3.Text := AMsg.From.Address;
end;

/Niels Henriksen

Replies