remove ssl
This commit is contained in:
@@ -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!")
|
||||
|
||||
Reference in New Issue
Block a user