/s/sender/from in resend calls

This commit is contained in:
sabaimran 2024-05-30 08:43:46 +05:30
parent 2076543e32
commit 4b3d3fe7ea

View file

@ -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 <khoj@khoj.dev>",
"from": "Khoj <khoj@khoj.dev>",
"to": email,
"subject": f"{subject}",
"html": html_content,