Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brianlesko/email-send-python
Send an email from a python program
https://github.com/brianlesko/email-send-python
Last synced: about 20 hours ago
JSON representation
Send an email from a python program
- Host: GitHub
- URL: https://github.com/brianlesko/email-send-python
- Owner: BrianLesko
- Created: 2024-04-20T19:10:23.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-08T23:58:46.000Z (6 months ago)
- Last Synced: 2024-05-09T00:40:59.352Z (6 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Send an email using Python
Send an email from a python program, build this example code into your own enterprise level software for resource planning, scheduling vacation, or customer communications.Uses the Simple Mail Transfer Protocol (SMTP), part of the internet protocol suite.
For testing, I used a gmail account. To enable smtp from gmail, you need to create an app password, which can be done at: myaccount.google.com/u/4/apppasswords
## Software Dependencies
This code uses only native python libraries
## Usage
1. pull the code into a directory (folder)
git pull https://github.com/BrianLesko/email-send-python/blob/main/app.py2. create a secrets.py file that contains your sender email, app password, and recipient email
secrets.py example:
```
SENDER_EMAIL = "[email protected]"
SENDER_PASSWORD = "jgjgj jhgjgh ghgjd"
RECIPIENT_EMAIL = "[email protected]"
```
3. run the python program
```
python app.py
```
## About
Hi, I am Brian Lesko. I am currently a robotics engineer working in Cleveland, Ohio. I received my bachelors in mechanical engineering and then my masters in Mechnical engineering from The Ohio State University in 2022 and 2024 respectively. Although my education is in mechanical engineering, I have been coding in Matlab, Python, and C++ since 2018. Outside work I have been posting the code I write for learning purposes. This code focuses on Internet communication protocols in pursuit of developing Enterprise level software for resource planning and employee management purposes. This repository just contains the bare minumum refrence for sending an email. The next steps in this project are integrating this code into a user interface for scheduling vacation time.
╭━━╮╭━━━┳━━┳━━━┳━╮╱╭╮ ╭╮╱╱╭━━━┳━━━┳╮╭━┳━━━╮
┃╭╮┃┃╭━╮┣┫┣┫╭━╮┃┃╰╮┃┃ ┃┃╱╱┃╭━━┫╭━╮┃┃┃╭┫╭━╮┃
┃╰╯╰┫╰━╯┃┃┃┃┃╱┃┃╭╮╰╯┃ ┃┃╱╱┃╰━━┫╰━━┫╰╯╯┃┃╱┃┃
┃╭━╮┃╭╮╭╯┃┃┃╰━╯┃┃╰╮┃┃ ┃┃╱╭┫╭━━┻━━╮┃╭╮┃┃┃╱┃┃
┃╰━╯┃┃┃╰┳┫┣┫╭━╮┃┃╱┃┃┃ ┃╰━╯┃╰━━┫╰━╯┃┃┃╰┫╰━╯┃
╰━━━┻╯╰━┻━━┻╯╱╰┻╯╱╰━╯ ╰━━━┻━━━┻━━━┻╯╰━┻━━━╯
follow all of these for pizza :)