Spaces:
Sleeping
Sleeping
Update escalation_server.py
Browse files- escalation_server.py +3 -3
escalation_server.py
CHANGED
|
@@ -8,7 +8,7 @@ import aiosmtplib
|
|
| 8 |
|
| 9 |
# --- EMAIL CONFIGURATION ---
|
| 10 |
SMTP_SERVER = os.getenv("SMTP_SERVER", "smtp.gmail.com")
|
| 11 |
-
SMTP_PORT = int(os.getenv("SMTP_PORT", "
|
| 12 |
|
| 13 |
SENDER_EMAIL = os.getenv("SENDER_EMAIL")
|
| 14 |
SENDER_PASSWORD = os.getenv("SENDER_PASSWORD")
|
|
@@ -228,8 +228,8 @@ async def escalate_to_teacher(
|
|
| 228 |
port=SMTP_PORT,
|
| 229 |
username=SENDER_EMAIL,
|
| 230 |
password=SENDER_PASSWORD,
|
| 231 |
-
|
| 232 |
-
use_tls=
|
| 233 |
timeout=30
|
| 234 |
)
|
| 235 |
|
|
|
|
| 8 |
|
| 9 |
# --- EMAIL CONFIGURATION ---
|
| 10 |
SMTP_SERVER = os.getenv("SMTP_SERVER", "smtp.gmail.com")
|
| 11 |
+
SMTP_PORT = int(os.getenv("SMTP_PORT", "587"))
|
| 12 |
|
| 13 |
SENDER_EMAIL = os.getenv("SENDER_EMAIL")
|
| 14 |
SENDER_PASSWORD = os.getenv("SENDER_PASSWORD")
|
|
|
|
| 228 |
port=SMTP_PORT,
|
| 229 |
username=SENDER_EMAIL,
|
| 230 |
password=SENDER_PASSWORD,
|
| 231 |
+
start_tls=True,
|
| 232 |
+
use_tls=False,
|
| 233 |
timeout=30
|
| 234 |
)
|
| 235 |
|