Tests
Tests
5001
5010
5011
5100
5101
5110
5111
10000
10002
10020
10022
10200
10202
10220
10222
12000
12002
12020
12022
12200
12202
12220
12222
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.mime.base import MIMEBase
from email import encoders
# Usage example
subject = "Subject of the email"
body = "Body of the email"
to_email = "[email protected]"
from_email = "[email protected]"
password = "your-email-password"
attachment_path = "path/to/your/attachment.txt"