@Ghost007
aus der Delphi Hilfe:
Zitat:
function Retrieve(const MsgNum: Integer; AMsg: TIdMessage): Boolean;
Parameters
const MsgNum: Integer
Message number to retrieve from the server.
AMsg: TIdMessage
Message instance where the values will be stored.
Returns
Boolean - True on success.
Description
Retrieve is a Boolean function that retrieves the message number passed as the argument and stores the result in a IdMessage component, with MIME decoding. An IdText object is created for any text parts the message has and an IdAttachment for the attachments.
Retrieve calls ReceiveHeader and ReceiveBody to load the message contents into AMsg.
Musst nur die Message ID der Mail wissen.
Grüße
Klaus