Spaces:
Running
Running
Tu Nombre commited on
Commit ·
86cfe52
1
Parent(s): ccb8966
fix email
Browse files
main.py
CHANGED
|
@@ -51,8 +51,8 @@ def enviar_email(email, nicho, url):
|
|
| 51 |
<p style="color:#666;font-size:.85rem;">Si tienes dudas responde este email.</p>
|
| 52 |
</div>"""
|
| 53 |
requests.post("https://api.resend.com/emails",
|
| 54 |
-
headers={
|
| 55 |
-
json={
|
| 56 |
)
|
| 57 |
except Exception as e:
|
| 58 |
print(f"Error email: {e}")
|
|
|
|
| 51 |
<p style="color:#666;font-size:.85rem;">Si tienes dudas responde este email.</p>
|
| 52 |
</div>"""
|
| 53 |
requests.post("https://api.resend.com/emails",
|
| 54 |
+
headers={"Authorization": f"Bearer " + RESEND_KEY, "Content-Type": "application/json"},
|
| 55 |
+
json={"from":"TubeBot <onboarding@resend.dev>","to":email,"subject":"Tu canal de YouTube esta listo","html":html}
|
| 56 |
)
|
| 57 |
except Exception as e:
|
| 58 |
print(f"Error email: {e}")
|