diff --git a/api/extensions/ext_mail.py b/api/extensions/ext_mail.py index ab55cfb286f467..10d0ee52fefae3 100644 --- a/api/extensions/ext_mail.py +++ b/api/extensions/ext_mail.py @@ -87,7 +87,7 @@ def send(self, to: str, subject: str, html: str, from_: Optional[str] = None): def is_enabled() -> bool: - return dify_config.MAIL_TYPE + return dify_config.MAIL_TYPE is not None def init_app(app: DifyApp):