Raspberry Pi Email on boot debugging

Often when moving a raspberry pi project around it’s IP changes. whether it is on your home network or a new one, it becomes a task to figure out it’s IP.

There are plenty of scripts to trigger emails to be sent so I won’t go over them. A quick google search should bring up a few, for my project I used a python. Whatever the language may be, once you throw it into your boot config to run on startup. If it still does not send emails and you can’t seem to find any bugs with it. Even though it runs locally, you may want to enable the raspberry pi to wait for the network before booting. This can be located at sudo raspi-config > Boot Options > Wait for Network on Boot

Toggling this flag will ensure that you have an IP before the script runs and will work as expected and save yourself days of headaches of why you can run it manually but it won’t work properly on boot.


Innovative, entrepreneurial and positively unsatisfied mind that constantly pushes the tech boundaries to create new solutions and devices that change people’s lives. Throughout my career, I have had the opportunity of having a multi-disciplinary experience, which led me to wear the hats of: Architect, IoT Consultant (Internet of Things Consultant), Developer, Designer, Engineer, Server Admin, Consultant and Project Manager – to name a few. Based on this diversified background, I get projects done by following smart ideas and well-planned goals. In a world which is getting more unconventional by the day, I use unconventional ways, and a very healthy dose of integrity, to create devices and solutions that help companies go from a steady present to a dynamic future.

You may also like...