Ver Mensaje Individual
  #2  
Antiguo 09-05-2016
Avatar de Neftali [Germán.Estévez]
Neftali [Germán.Estévez] Neftali [Germán.Estévez] is offline
[becario]
 
Registrado: jul 2004
Ubicación: Barcelona - Espańa
Posts: 18.309
Reputación: 10
Neftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en bruto
Yo en Delphi (Delphi7+Indy10) hago directamente esto (sin el Add); A ver si te sirve:

Código Delphi [-]
var
   Mennsaje: TIdMessage;
...
begin
..

// recorer la lista y ańadir los ficheros...
for i := 0 to (AListaAdjuntos.Count - 1) do begin
  // si existe, lo ańadimos...
  if FileExists(AListaAdjuntos[i]) then begin
    TIdAttachmentFile.Create(Mensaje.MessageParts, AListaAdjuntos[i]);
  end;
end;
__________________
Germán Estévez => Web/Blog
Guía de estilo, Guía alternativa
Utiliza TAG's en tus mensajes.
Contactar con el Clubdelphi

P.D: Más tiempo dedicado a la pregunta=Mejores respuestas.
Responder Con Cita