Code Monkey home page Code Monkey logo

server-ip-mailer's Introduction

server-ip-mailer

This is a fork from shenjia/raspbian-ip-mailer

This version can:

  1. Try several times to connect smtp server, because the Wifi may be not ready yet.
  2. Print progress infomation while connect, login and sending mail.
  3. Install as a service automatically.

Deploy

  1. Download deploy.sh and run it.

    wget https://github.com/lowstz/server-ip-mailer/raw/master/deploy.sh
    sudo chmod +x deploy.sh
    ./deploy.sh
    
    
  2. Update your mail account in /usr/local/bin/server-ip-mailer.py:

    # Mail account settings
    mail_setting = {
        'mail_user': '[email protected]',
        'mail_password': 'password'
        }
    
    send_to_list = [
        '[email protected]',
        '[email protected]'
        ]
    

    If you don't use gmail, update those also:

    # smtp server settings
    smtp_setting = {
        'smtp_server': 'smtp.gmail.com',
        'smtp_port': 587
        }
    
  3. Reboot and enjoy it!

server-ip-mailer's People

Contributors

shenjia avatar lowstz avatar

Watchers

 avatar James Cloos 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.