This Python script allows you to send an email with an attachment using Gmail's SMTP server. The email is sent securely using TLS encryption. The script utilizes smtplib
, email.mime
, and os
libraries to compose and send the email.
- Send emails with attachments π
- TLS encryption for secure email sending π
- Clear and simple code structure for ease of use π§βπ»
To run this script, you need:
- Python 3.x installed on your system π
- A Gmail account or any other SMTP-compatible email provider π§
- Access to less secure apps for Gmail (if not using OAuth)