Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: resend url optional (#1987)

takatost94626487dbbe
diff --git a/api/extensions/ext_mail.py b/api/extensions/ext_mail.py
index 51ebfdce56c..c1e76043121 100644
--- a/api/extensions/ext_mail.py
+++ b/api/extensions/ext_mail.py
@@ -23,10 +23,9 @@ class Mail:
raise ValueError('RESEND_API_KEY is not set')
api_url = app.config.get('RESEND_API_URL')
- if not api_url:
- raise ValueError('RESEND_API_URL is not set')
-
- resend.api_url = api_url
+ if api_url:
+ resend.api_url = api_url
+
resend.api_key = api_key
self._client = resend.Emails
else: