Update main.py
Browse files
main.py
CHANGED
|
@@ -46,6 +46,7 @@ bucket = storage.bucket()
|
|
| 46 |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
| 47 |
logger = logging.getLogger(__name__)
|
| 48 |
|
|
|
|
| 49 |
# -----------------------------------------------------------------------------
|
| 50 |
# 2. HELPER FUNCTIONS
|
| 51 |
# -----------------------------------------------------------------------------
|
|
@@ -104,7 +105,7 @@ def _send_notification(user_id, user_email, message_content, send_email=False, e
|
|
| 104 |
"Content-Type": "application/json"
|
| 105 |
}
|
| 106 |
payload = {
|
| 107 |
-
"from": "Sozo <onboarding@sozofix.tech>", # Replace with your verified Resend domain
|
| 108 |
"to": [user_email],
|
| 109 |
"subject": email_subject,
|
| 110 |
"html": email_body
|
|
|
|
| 46 |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
| 47 |
logger = logging.getLogger(__name__)
|
| 48 |
|
| 49 |
+
RESEND_API_KEY = os.environ.get("RESEND_API_KEY")
|
| 50 |
# -----------------------------------------------------------------------------
|
| 51 |
# 2. HELPER FUNCTIONS
|
| 52 |
# -----------------------------------------------------------------------------
|
|
|
|
| 105 |
"Content-Type": "application/json"
|
| 106 |
}
|
| 107 |
payload = {
|
| 108 |
+
"from": "Sozo Business Studio <onboarding@sozofix.tech>", # Replace with your verified Resend domain
|
| 109 |
"to": [user_email],
|
| 110 |
"subject": email_subject,
|
| 111 |
"html": email_body
|