fix smtp hostname

This commit is contained in:
Peter Hormanns 2021-06-21 19:33:04 +02:00
parent ef4ee7be28
commit a01bf98dd0

View File

@ -25,7 +25,7 @@ public class SmtpHelper {
throws HSAdminException {
try {
SMTPClient client = new SMTPClient();
String canonicalHostName = InetAddress.getLocalHost().getHostName();
String canonicalHostName = InetAddress.getLocalHost().getCanonicalHostName();
String smtpHost = Config.getInstance().getProperty("smtp.host");
if (smtpHost == null || smtpHost.trim().isEmpty()) {
smtpHost = "localhost";