add a AI chatbot, rename course names
This commit is contained in:
@@ -106,7 +106,9 @@ def send_email(sender_email, password, to_email, subject):
|
||||
server.starttls() # Enable TLS encryption for secure connection
|
||||
server.login(sender_email, password) # Log in with the sender's email and password
|
||||
server.send_message(message) # Send the email message
|
||||
|
||||
print("Email sent successfully!")
|
||||
|
||||
except Exception as e:
|
||||
# Catch and display any exceptions that occur during the sending process
|
||||
print(f"Failed to send email: {str(e)}")
|
||||
|
||||
Reference in New Issue
Block a user