https://github.com/ecopque/send_smtp_email
Program that send SMTP e-mails with Python.
https://github.com/ecopque/send_smtp_email
Last synced: over 1 year ago
JSON representation
Program that send SMTP e-mails with Python.
- Host: GitHub
- URL: https://github.com/ecopque/send_smtp_email
- Owner: ecopque
- Created: 2023-11-23T17:54:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-08T13:16:24.000Z (over 1 year ago)
- Last Synced: 2025-01-26T19:44:08.232Z (over 1 year ago)
- Language: Python
- Homepage: https://linktr.ee/edsoncopque
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python SMTP Email Sender
This Python program demonstrates how to send SMTP emails using Python. It utilizes the smtplib library to establish a connection to an SMTP server, and the email.mime modules to create and format the email message.
## Features
- Loads email credentials from environment variables using dotenv.
- Reads email content from a template file and substitutes variables using string.Template.
- Attaches plain text content to the email message using email.mime.text.
- Sends the email message using the specified SMTP server and port.
- Uses TLS encryption for secure communication with the SMTP server.
## Usage
- Install the required Python packages listed in requirements.txt.
- Set up environment variables for the email sender address and password.
- Customize the email template and content in the file100.txt.
- Run the Python script to send the email.