Skip to content

Commit

Permalink
fix(ext_mail): Fix the condition
Browse files Browse the repository at this point in the history
Signed-off-by: -LAN- <[email protected]>
  • Loading branch information
laipz8200 committed Nov 29, 2024
1 parent b388d1a commit 8cb9063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/extensions/ext_mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 is not None
return dify_config.MAIL_TYPE is not None and dify_config.MAIL_TYPE != ""


def init_app(app: DifyApp):
Expand Down

0 comments on commit 8cb9063

Please sign in to comment.