remove ssl

This commit is contained in:
CHIEFSOFT\ameye
2025-07-09 11:53:57 -04:00
parent 3bffde4358
commit cd34da5202
+1 -1
View File
@@ -126,7 +126,7 @@ def send_register_mail(signup_email, email_uid,last_row_id,firstname):
# For Gmail, use 'smtp.gmail.com' and port 587 (TLS) or 465 (SSL)
# For other providers, consult their documentation for SMTP server and port
server = smtplib.SMTP('smtp.gmail.com', 587)
server.starttls() # Enable TLS encryption
# server.starttls() # Enable TLS encryption
server.login(sender_email, sender_password)
server.sendmail(sender_email, receiver_email, msg.as_string())
print("Email sent successfully!")