Skip to content

Commit 75afd68

Browse files
Update app/api/resend/utils/send_email.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2d55202 commit 75afd68

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎app/api/resend/utils/send_email.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
import httpx
33
import os
44

5-
RESEND_API_KEY = os.getenv("RESEND_API_KEY")
65
RESEND_API_URL = "https://api.resend.com/emails"
76

87
def send_email_resend(to: str, subject: str, html: str, sender: str) -> dict:
9-
if not RESEND_API_KEY:
8+
resend_api_key = os.getenv("RESEND_API_KEY")
9+
if not resend_api_key:
1010
return {"error": "Missing RESEND_API_KEY"}
1111
headers = {
12-
"Authorization": f"Bearer {RESEND_API_KEY}",
12+
"Authorization": f"Bearer {resend_api_key}",
1313
"Content-Type": "application/json"
1414
}
1515
payload = {

0 commit comments

Comments
 (0)