Mail ip to you after system boot in raspbian, orginal version is http://elinux.org/RPi_Email_IP_On_Boot_Debian.
This version can:
- Try several times to connect smtp server, because the Wifi may be not ready yet.
- Print progress infomation while connect, login and sending mail.
- Install as a service automatically.
-
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
-
Update your mail account in
/usr/local/bin/raspbian-ip-mailer.py
:# Mail account settings send_to = '[email protected]' mail_user = '[email protected]' mail_password = 'password'
If you don't use gmail, update those also:
# Mail server settings smtp_server = 'smtp.gmail.com' smtp_port = 587
-
Reboot and enjoy it!