Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,12 +19,12 @@ def send_email(to:str, subject:int)-> str: #it's import to specify the return ty
|
|
19 |
"""
|
20 |
resend.api_key = os.getenv('RESEND_TOKEN')
|
21 |
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
|
29 |
return f"Email with conversation summary sent successfully to {to} with subject '{subject}'"
|
30 |
|
|
|
19 |
"""
|
20 |
resend.api_key = os.getenv('RESEND_TOKEN')
|
21 |
|
22 |
+
r = resend.Emails.send({
|
23 |
+
"from": "[email protected]",
|
24 |
+
"to": to,
|
25 |
+
"subject": subject,
|
26 |
+
"html": conversation_summary
|
27 |
+
})
|
28 |
|
29 |
return f"Email with conversation summary sent successfully to {to} with subject '{subject}'"
|
30 |
|