Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.py

2. 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.

 


 

╭━━╮╭━━━┳━━┳━━━┳━╮╱╭╮ ╭╮╱╱╭━━━┳━━━┳╮╭━┳━━━╮
┃╭╮┃┃╭━╮┣┫┣┫╭━╮┃┃╰╮┃┃ ┃┃╱╱┃╭━━┫╭━╮┃┃┃╭┫╭━╮┃
┃╰╯╰┫╰━╯┃┃┃┃┃╱┃┃╭╮╰╯┃ ┃┃╱╱┃╰━━┫╰━━┫╰╯╯┃┃╱┃┃
┃╭━╮┃╭╮╭╯┃┃┃╰━╯┃┃╰╮┃┃ ┃┃╱╭┫╭━━┻━━╮┃╭╮┃┃┃╱┃┃
┃╰━╯┃┃┃╰┳┫┣┫╭━╮┃┃╱┃┃┃ ┃╰━╯┃╰━━┫╰━╯┃┃┃╰┫╰━╯┃
╰━━━┻╯╰━┻━━┻╯╱╰┻╯╱╰━╯ ╰━━━┻━━━┻━━━┻╯╰━┻━━━╯

 

X Logo             GitHub             LinkedIn

follow all of these for pizza :)