ok well heres a simple chat gpt prompt you could have done ```py import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText # Email and password for the Gmail account sending the email sender_email = "your_email@gmail.com" sender_password = "your_password" # Recipient email address recipient_email = "recipient@example.com" # Create message container - the correct MIME type is multipart/alternative. msg = MIMEMultipart('alternative') msg['Subject'] = "Subject of the email" msg['From'] = sender_email msg['To'] = recipient_email # Create the body of the message (a plain-text and an HTML version). text = "Hello, s is a test email from Python." html = """\ Hello, This is a test email from Python. This is a link. """ # Record the MIME types of both parts - text/plain and text/html. part1 = MIMEText(text, 'plain') part2 = MIMEText(html, 'html') # Attach parts into message container. msg.attach(part1) msg.attach(part2) # Send the message via Gmail's SMTP server. try: with smtplib.SMTP_SSL('smtp.gmail.com', 465) as server: server.login(sender_email, sender_password) server.sendmail(sender_email, recipient_email, msg.as_string()) print("Email sent successfully!") except Exception as e: print("Failed to send email:", e) ```
!rule 10