I did not found any packages for years to simply send a mail when the IP of your router is changing. I have a failover 4G connection when the land one is out, and the change of the public IP is a great indicator of the switch in connection, in my opinion better than doing it with the hardware directly but you can do it anyway inside too if you want.
!!!!! DISCLAIMER !!!!!
This package was coded using Claude Opus 4.7, i know the function could be easily made with a light and simple cron job + smtp send directly in OpenWRT, but i wanted it in LuCi, get visual controls + logs, a really easy installation, re-installations and updates.
Yes thank you i'm aware of it and using DDNS, but it's not giving you notification of IP change by mail or anything else, or i didn't found it. Secondly i don't want to be dependant of another application that could fail, and i want to have this function directly in the router and not a Docker, server app etc...
You know most consumer ISPs follow BCP 30, and dont allow users to send SMTP, correct?
BTW, a simple nslookup from anywhere can also notify your code/you of the change - not sure what you used without reviewing the code (then the email could sent in that change)
It can, but there is actually nothing else to do it directly with another app, and NotifIP is really simple, it's basicaly a cron work with GUI and parameters.
You mean the ISP could block it ? The app is working with msmtp, acting the same as a mail app no ? I'm on a commercial connection but this is not the point here, my IP is fixed on my side, i didn't do it for this purpose even if it can be used for this.
I know there are "simpler" way, but those ways are not in LuCI, and not in form of an app.
Most ISP (at least in the US) block Mail Transfer Agents, unless you specifically have 1.) a Static IP or business service, and/or 2.) have arranged for a DNS global PTR record to be added for the IP in question.
Makes sense now. That's why your app works for you on your ISP. You may want to make a disclaimer for others not using a commercial Internet connection.
They almost certainly will block it unless going to their own relay (to which you'll probably have to authenticate) - I have occasional problems with email and I have a commercial ISP, forward and reverse DNS under my control, MX and SPF records for my domain, and pass all blocklist checks.
However you don't really need to send mail on port 25 (or 465 or 587), you just want your own notification - have you considered using imap to append a new message to your inbox. ISP's won't block that.
Thank you all for the comments and good points on the ISP, but actually it's a simple mail sent with SMTP credentials (from your mail provider not your ISP), it's basically acting the same as sending a mail from your application on your computer, and i hope in the US you can do that ahah.
No matter if you IP is fixed or not, the mail is still coming from your connection. I can see maybe troubles with SFP or DKIM and having the mail go in the spams of the destination, that the only trouble you can get.
If you still need to use the provider SMTP, so you can definitely do it with it. I'm in Europe and we can of course use any SMTP providers we want, related of course to the mail associated.
I've just checked and of course you can use any SMTP server anywhere in the world, even in the US, to send a mail. There is absolute no limitations (except of course in some countries blocking internet connections with firewalls but it's another problem).
Every provider will work, even Gmail, Outlook, iCloud etc ... You can even just create an account to be used only for NotifIP.