For >3 years I have used the script below to send a GMAIL from the "WANup" script [called via the WebUI]. This has worked on both ARM & MIPS builds [and was discovered here]. This is useful as I get an "alert" email whenever the WAN comes up, either because of a power-cut or, more usually, when an ISP assigns a new WAN IP. As I manage a few mates' routers it also lets me know who it is! The output is also shown below...
[FreshTomato 2020.3] - Scripted GMAIL not working
[FreshTomato 2020.3] - Scripted GMAIL not working