From a87c835fe08d59b2a1901818ee672104ca91e08b Mon Sep 17 00:00:00 2001 From: Lennard Golsch Date: Fri, 8 Nov 2024 12:47:52 +0100 Subject: [PATCH] switched from default session to session in email factory --- .../java/de/vzg/reposis/digibib/email/EmailClientFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/vzg/reposis/digibib/email/EmailClientFactory.java b/src/main/java/de/vzg/reposis/digibib/email/EmailClientFactory.java index a9b38804..a4564709 100644 --- a/src/main/java/de/vzg/reposis/digibib/email/EmailClientFactory.java +++ b/src/main/java/de/vzg/reposis/digibib/email/EmailClientFactory.java @@ -76,7 +76,7 @@ protected PasswordAuthentication getPasswordAuthentication() { } }; } - return Session.getDefaultInstance(createSessionPropertiesMap(propertiesMap), authenticator); + return Session.getInstance(createSessionPropertiesMap(propertiesMap), authenticator); } private static Properties createSessionPropertiesMap(Map propertiesMap) {