Skip to content

wkj611/raspbian-ip-mailer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raspbian-ip-mailer

Mail ip to you after system boot in raspbian, orginal version is http://elinux.org/RPi_Email_IP_On_Boot_Debian.

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/shenjia/raspbian-ip-mailer/raw/master/deploy.sh
    sudo chmod +x deploy.sh
    ./deploy.sh
    
    
  2. Update your mail account in /usr/local/bin/raspbian-ip-mailer.py:

    # Mail account settings
    send_to = 'username@gmail.com'
    mail_user = 'username@gmail.com'
    mail_password = 'password'
    

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

    # Mail server settings
    smtp_server = 'smtp.gmail.com'
    smtp_port = 587
    
  3. Reboot and enjoy it!

About

mail ip to you after system boot in raspbian

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 64.5%
  • Shell 35.5%