fix smtp hostname
This commit is contained in:
parent
ef4ee7be28
commit
a01bf98dd0
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user