diff --git a/designer-base/src/main/java/com/fr/design/javascript/EmailPane.java b/designer-base/src/main/java/com/fr/design/javascript/EmailPane.java index 21961318bc..e0b96a96cb 100644 --- a/designer-base/src/main/java/com/fr/design/javascript/EmailPane.java +++ b/designer-base/src/main/java/com/fr/design/javascript/EmailPane.java @@ -1,5 +1,6 @@ package com.fr.design.javascript; +import com.fr.base.email.EmailCenter; import com.fr.config.EmailServerConfig; import com.fr.design.beans.FurtherBasicBeanPane; import com.fr.design.constants.UIConstants; @@ -51,7 +52,7 @@ public class EmailPane extends FurtherBasicBeanPane { initCenterPane(mainTextLabel, scrollPane, fill, preferred); this.add(centerPane, BorderLayout.CENTER); mainTextEditor.setAutoscrolls(true); - checkEmailConfig(EmailServerConfig.getInstance().isEmailConfigValid()); + checkEmailConfig(EmailCenter.isEmailConfigValid()); } /** @@ -113,7 +114,7 @@ public class EmailPane extends FurtherBasicBeanPane { if (showTplContent != null) { showTplContent.setSelected(ob ==null ? false: ob.isShowTplContent()); } - checkEmailConfig(EmailServerConfig.getInstance().isEmailConfigValid()); + checkEmailConfig(EmailCenter.isEmailConfigValid()); } @Override