Checking if an email has an attachmente (Problem)

Giganews Newsgroups
Subject: Checking if an email has an attachmente (Problem)
Posted by:  [ Eduardo Tavares ] (davar…@earthlink.net)
Date: Fri, 30 Jan 2004

Hi!
I am having this problem to check if there is an attachment to a email.
  idMsg := TidMessage.Create(Self);
  idMsg.Clear;
  Mail.Retrieve(nMsg,idMsg);
  X := 0;
  for x := 0 to idMsg.MessageParts.Count-1 do This Line shows 0 when I am
debuging my app even if the email I am checking has an attachment.

What's the problem please?

Replies