prthm11 commited on
Commit
d4e19f8
·
verified ·
1 Parent(s): cf64583

Update escalation_server.py

Browse files
Files changed (1) hide show
  1. 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", "465"))
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
- # start_tls=True,
232
- use_tls=True,
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