Is mandatory to change propoerly the email config section in the Python script and YOU MUST ACTIVATE "INSECURE APPS IN GMAIL
################################################
###### Remember to set all constants here ######
################################################
FIXED_IP = '10.0.1.2'
IP_FILEPATH = '/home/pi/current_ip.txt'
SMTP_USERNAME = 'YOUR_SENTDER_EMAIL_ADDRESS@gmail.com'
SMTP_PASSWORD = 'YOUR_PASSWORD'
SMTP_RECIPIENT = 'YOUR_RECERTOR_EMAIL_ADDRESS@gmail.com'
SMTP_SERVER = 'smtp.gmail.com'
SSL_PORT = 465
################################################
this is originally and complete work of Morrolan https://gist.github.com/Morrolan