Git Product home page Git Product logo

email-send-python's Introduction

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]"
  1. 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 :)

 

email-send-python's People

Contributors

brianlesko avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.