fix smtp hostname
This commit is contained in:
parent
ef4ee7be28
commit
a01bf98dd0
@ -25,7 +25,7 @@ public class SmtpHelper {
|
|||||||
throws HSAdminException {
|
throws HSAdminException {
|
||||||
try {
|
try {
|
||||||
SMTPClient client = new SMTPClient();
|
SMTPClient client = new SMTPClient();
|
||||||
String canonicalHostName = InetAddress.getLocalHost().getHostName();
|
String canonicalHostName = InetAddress.getLocalHost().getCanonicalHostName();
|
||||||
String smtpHost = Config.getInstance().getProperty("smtp.host");
|
String smtpHost = Config.getInstance().getProperty("smtp.host");
|
||||||
if (smtpHost == null || smtpHost.trim().isEmpty()) {
|
if (smtpHost == null || smtpHost.trim().isEmpty()) {
|
||||||
smtpHost = "localhost";
|
smtpHost = "localhost";
|
||||||
|
Loading…
Reference in New Issue
Block a user