add a AI chatbot, rename course names

This commit is contained in:
BuffTechTalk
2025-01-10 14:29:06 -06:00
parent 9a28b3eaba
commit ab0e64777e
30 changed files with 430 additions and 76 deletions

View File

@@ -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)}")