Unverified Commit 94626487 authored by takatost's avatar takatost Committed by GitHub

fix: resend url optional (#1987)

parent 24bdedf8
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment