Amirizaniani commited on
Commit
023b429
1 Parent(s): e3c3de3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -194,8 +194,8 @@ def process_inputs(llm, file, relevance, diversity, email):
194
  message.attach(part)
195
 
196
  try:
197
- with smtplib.SMTP('smtp.gmail.com', 587) as server:
198
- server.starttls()
199
  server.login(sender_email, sender_password)
200
  server.sendmail(sender_email, receiver_email, message.as_string())
201
  except Exception as e:
 
194
  message.attach(part)
195
 
196
  try:
197
+ with smtplib.SMTP('smtp.gmail.com', 2525) as server: # Port 2525 used for SMTP submission
198
+ server.starttls() # Upgrade the connection to a secure encrypted SSL/TLS connection
199
  server.login(sender_email, sender_password)
200
  server.sendmail(sender_email, receiver_email, message.as_string())
201
  except Exception as e: