ist starttls.enabled = true ist sicher für E-mail-Versand von java-code aus?

Ich bin senden von E-Mails aus java-code.Meine Konfiguration ist

 props.put("mail.smtp.starttls.enable", "true");
 props.put("mail.smtp.host", "****"); 
 props.put("mail.smtp.auth", "true");
 props.put("mail.smtp.port", "587");

Auf meine andere Frage EJP beantwortet

Jedes Protokoll, das verwendet STARTTLS ist im SSL-Modus nach dem STARTTLS
- Befehl ausgegeben wird

Aber meine debug-Ausgabe zeigt:DEBUG SMTP: trying to connect to host "****", port 587, isSSL falsch.

Also meine Frage klingt

Ist eine solche Konfiguration auch wirklich sicher und verwendet SSL als EJP, sagte, trotz der isSSL=false auf meine debug-Ausgabe?

UPDATE

Anschluss-code

 Transport transport = session.getTransport("smtp");
 transport.connect("host", 587,"username", "password");

als ich schrieb Transport transport = session.getTransport("smtps") ich habe

javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection

InformationsquelleAutor Baurzhan | 2013-08-20

Schreibe einen Kommentar