Server-Einstellungen für Arcor-Mailaccount
This commit is contained in:
@@ -149,7 +149,10 @@ public class CallerIdClient {
|
|||||||
if (line.startsWith("SessionID_R3")) {
|
if (line.startsWith("SessionID_R3")) {
|
||||||
cookie = line.substring(13);
|
cookie = line.substring(13);
|
||||||
} else {
|
} else {
|
||||||
log.error(" Received unexpected response: " + line);
|
if (line.equals("4"))
|
||||||
|
log.error(" could not log in, Speedport adminstration account is currently in use");
|
||||||
|
else
|
||||||
|
log.error(" received unexpected response: " + line);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -186,11 +189,13 @@ public class CallerIdClient {
|
|||||||
String from = config.getString("e-mail adress");
|
String from = config.getString("e-mail adress");
|
||||||
String pass = config.getString("e-mail password");
|
String pass = config.getString("e-mail password");
|
||||||
Properties props = System.getProperties();
|
Properties props = System.getProperties();
|
||||||
props.put("mail.smtp.starttls.enable", "true");
|
props.put("mail.smtp.ssl.enable", "true");
|
||||||
|
//props.put("mail.smtp.starttls.enable", "true");
|
||||||
props.put("mail.smtp.host", host);
|
props.put("mail.smtp.host", host);
|
||||||
props.put("mail.smtp.user", from);
|
props.put("mail.smtp.user", from);
|
||||||
props.put("mail.smtp.password", pass);
|
props.put("mail.smtp.password", pass);
|
||||||
props.put("mail.smtp.port", "587");
|
props.put("mail.smtp.port", "465");
|
||||||
|
//props.put("mail.smtp.port", "587");
|
||||||
props.put("mail.smtp.auth", "true");
|
props.put("mail.smtp.auth", "true");
|
||||||
|
|
||||||
String[] to = config.getStringArray("recipient");
|
String[] to = config.getStringArray("recipient");
|
||||||
|
|||||||
Reference in New Issue
Block a user