GithubHelp home page GithubHelp logo

joiellantero / py-notification Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 1.0 17 KB

A Python script that sends notifications to your email or phone number

License: MIT License

Python 100.00%
python3 notification smtp smtplib email

py-notification's Introduction

Notification Alert Program

A Python program that sends notifications to your email and phone number

License

๐Ÿš€ Quickstart

  1. Clone repository

    $ git clone https://github.com/joiellantero/notification.git
  2. Navigate to the project directory

  3. Setup your environment variables in ~/.bash_profile

     $ vim ~/.bash_profile

    Click here if you don't have bash.

    In this step you can open bash_profile using your favorite code editor by replacing vim with code (VSCode), atom (Atom), etc.

  4. Add your email credentials

     export EMAIL_CLIENT="[email protected]"
     export EMAIL_CLIENT_APP_PASSWORD="yourcomplexpassword"

    Don't forget to setup your email to obtain your app password. Click here to learn how to obtain your app password.

  5. Run the program

    $ python3 notification.py
  6. Star this repo if you like it!

๐Ÿ›  Alternative

  • Using .env instead of ~/.bash_profile
    1. Create a .env file

      $ touch .env
      $ vim .env
    2. Enter your credentials in the .env file

       export EMAIL_CLIENT="[email protected]"
       export EMAIL_CLIENT_APP_PASSWORD="yourcomplexpassword"

      You may need to setup your email to obtain your app password. Click here to learn how to obtain your app password.

    3. Install the dependency

      $ pip install python-dotenv
    4. Run notification2.py since this is set up to read the .env

      $ python3 notification2.py

๐Ÿ“ฑ Mobile Notifications

  1. Replace the email address passed in the function call
    email_alert("this is my subject", "[email protected]", "this is my body")

    The SMS gateway domain depends on your carrier. Visit this link to learn more.

๐Ÿ‘จโ€๐Ÿ’ป Author

๐Ÿ“„ License

py-notification's People

Contributors

joiellantero avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

jrrmdsg

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.