Ver Mensaje Individual
  #3  
Antiguo 11-09-2013
CHiCoLiTa CHiCoLiTa is offline
Miembro
 
Registrado: may 2003
Posts: 102
Reputación: 22
CHiCoLiTa Va por buen camino
Código Delphi [-]
var
  Cuerpo   : TIdMessage;
  POP3     : TIdPOP3;
begin

  with POP3 do
  begin
      Connect(0);
      // Hay correos nuevos
      if CheckMessages > 0 then
      begin
        Cuerpo := TIdMessage.Create(nil);
        for i := 1 to CheckMessages do
        begin
          Retrieve(i, Cuerpo);

        // Adjuntos
          for j := 0 to Cuerpo.MessageParts.Count - 1 do
          begin
            if (Cuerpo.MessageParts.Items[j] is TIdAttachment) then
            begin
                EL_FICHERO := TIdAttachment(Cuerpo.MessageParts.Items[j]).Filename;
..
..
..
..
Responder Con Cita