From 4b3d3fe7ea5ab3f2ae5d4f9aa2003999c6d4aca5 Mon Sep 17 00:00:00 2001 From: sabaimran Date: Thu, 30 May 2024 08:43:46 +0530 Subject: [PATCH] /s/sender/from in resend calls --- src/khoj/routers/email.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/khoj/routers/email.py b/src/khoj/routers/email.py index ff5cb1ce..1fff6867 100644 --- a/src/khoj/routers/email.py +++ b/src/khoj/routers/email.py @@ -42,7 +42,7 @@ async def send_welcome_email(name, email): r = resend.Emails.send( { - "sender": "team@khoj.dev", + "from": "team@khoj.dev", "to": email, "subject": f"{name}, four ways to use Khoj" if name else "Four ways to use Khoj", "html": html_content, @@ -68,7 +68,7 @@ async def send_query_feedback(uquery, kquery, sentiment, user_email): # send feedback from two fixed accounts r = resend.Emails.send( { - "sender": "saba@khoj.dev", + "from": "saba@khoj.dev", "to": "team@khoj.dev", "subject": f"User Feedback", "html": html_content, @@ -91,7 +91,7 @@ def send_task_email(name, email, query, result, subject): r = resend.Emails.send( { - "sender": "Khoj ", + "from": "Khoj ", "to": email, "subject": f"✨ {subject}", "html": html_content,