A simple Python script to send emails programmatically.
- Send emails using SMTP
- Supports plain text and HTML content
- Easy configuration
- Python 3.x
smtplib(standard library)email(standard library)
- Clone the repository.
- Edit
main.pyto configure your SMTP server, sender, recipient, and message. - Run the script:
python main.pyIn main.py, set the following variables:
smtp_server = "smtp.example.com"
smtp_port = 587
username = "your_email@example.com"
password = "your_password"
sender = "your_email@example.com"
recipient = "recipient@example.com"
subject = "Your Subject"
body = "Email body goes here."MIT License