Revert email from from to sender again in resend API. keeps switching?

This commit is contained in:
sabaimran 2024-05-31 10:30:18 +05:30
parent 4b3d3fe7ea
commit 76f941f4e5

View file

@ -42,7 +42,7 @@ async def send_welcome_email(name, email):
r = resend.Emails.send(
{
"from": "team@khoj.dev",
"sender": "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(
{
"from": "saba@khoj.dev",
"sender": "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(
{
"from": "Khoj <khoj@khoj.dev>",
"sender": "Khoj <khoj@khoj.dev>",
"to": email,
"subject": f"{subject}",
"html": html_content,