Einzelnen Beitrag anzeigen

Klaus01

Registriert seit: 30. Nov 2005
Ort: München
5.756 Beiträge
 
Delphi 10.4 Sydney
 
#4

AW: Mailversand mit Indy geht nur einmal

  Alt 1. Aug 2012, 15:59
Hallo,

mache mal aus

Delphi-Quellcode:
try
   idsmtp1.Connect;
   idsmtp1.Send(idmsg1);
   idsmtp1.Disconnect();
   pBody.Free;
   pAttachment.Free;
  except
   ShowMessage('Fehler bei der Verbindung!');
   pBody.Free;
   pAttachment.Free;
  end;
end;
dieses hier:

Delphi-Quellcode:
try
 try
   idsmtp1.Connect;
   idsmtp1.Send(idmsg1);
   idsmtp1.Disconnect();
  except
    on E:Exception do
    ShowMessage('Fehler bei der Verbindung! ' +E.Message);
  end;
finally
   pBody.Free;
   pAttachment.Free;
end;
Hilfe eventuell beim Fehlerfinden.

Grüße
Klaus
Klaus
  Mit Zitat antworten Zitat