Hi,
ich habe bereits das Forum durchsucht und immer noch folgendes Problem:
Beim Versuch eine Email zu versenden (via googlemail) bekomme ich die Fehlermeldung
"Exception der Klasse EIdSMTPReplyError .... Meldung: 'Must issue a STARTTLS command first'"
Jetzt habe ich
hier gelesen, dass man irgendwie mit TLS arbeiten muss.
Zitat: "For Indy 10
Indy 10 supports SMTP with explicit TLS. In the Indy 10's TIdSMTP, you simply have to assign a
TIdSSLIOHandlerSocketBase descendent to the TIdSMTP.IOHandler property and set the UseTLS
property to either utUseRequireTLS if you do not want to use an unencrypted connection or
utUseExplicitTLS if you are willing to use an unencrypted connection."
Leider sind meine bisherigen Versuche gescheitert das umzusetzen, weil ich keine Ahnung habe wie das gemacht werden muss.
Das hier ist mein bisheriger Code:
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13:
| IdSmtp.Host := 'smtp.googlemail.com'; IdSmtp.Port := 25;
IdSmtp.Username := 'meinemailaddy'; IdSmtp.Password := 'meinpw'; try IdSmtp.Connect; IdSmtp.Send(IdMessage); finally IdSmtp.Disconnect; end; |
Ich hoffe ihr könnt / wollt mir helfen.
Vielen Danke im Voraus!
Moderiert von
Christian S.: Code- durch Delphi-Tags ersetzt