Main menu:
Write your own program in python -- here an example
Install python 365 from https://www.python.org/downloads/release/python-365/
Install some development plattform like http://ninja-ide.org/downloads/
To get the public ip create this lines in your python script
import requests
page = requests.get('http://botliam.com/1.php')
ip = page.text
# test the value of variable ip by show it on terminal
print (ip)
Then to send a mail with your ISP just a code like below (this example is for TELENOR):
# use smtplib functions
import smtplib
server = smtplib.SMTP_SSL('smtp.bredband.net', 465)
# some ISP does not use tls instead you should use SMTP_SSL as python command
# server.starttls()
server.login("your email address", "your password")
# set the ip number as the message text
msg = "This is your public ip" + ip + " have a good day"
server.sendmail("your email adress", "the email address to send to", msg )
server.quit()
pyinstaller.exe --onefile "c:\code\mypublicip.py"
More information on how to do it at http://naelshiab.com/tutorial-send-email-python/
import smtplib
server = smtplib.SMTP('smtp.gmail.com', 587)
server.starttls()
server.login("YOUR EMAIL ADDRESS", "YOUR PASSWORD")
msg = "YOUR MESSAGE!"
server.sendmail("YOUR EMAIL ADDRESS", "THE EMAIL ADDRESS TO SEND TO", msg)
server.quit()
import requests
page = requests.get('http://botliam.com/1.php')
ip = page.text