Merlin / All..
The Gmail email notification was working great for me until I did something.. It turns out that if (and I suppose I did at some point) you enable 2-Step Verification, then the script fails.
You need to tell Google to allow a app-specific password that it will generate (that is different than any of your Google passwords) for you, to use to bypass the 2-step verification.
It's used when you want to access Gmail from an application such as Outlook on the desktop (or sendmail on our routers) which do not have the ability to enter the 2-step authentication code you will typically get as a SMS on your cellphone.
a) So, the script you have on your sending email scripts page:
https://github.com/RMerl/asuswrt-merlin/wiki/Sending-Email works fine...
b) until you go into Google's 2-Step Verification and enable it:
http://www.google.ca/landing/2step/ ...The script no longer will send an email when the router reboots. I don't believe an error from sendmail is generated, the email just never goes through.
c) the
FIX TO MAKE THE SCRIPT WORK AGAIN is as follows... go to this setting page:
https://accounts.google.com/b/0/SmsAuthSettings#asps
[ you might need to 'Google' login here, and then 1st click on the tab in the webpage named "App-Specific Passwords".. ]
... this is an "App-Specific Password" generator setting page for Google's 2-Step Verification security... you need to:
d) click on the button "Manage Application-Specific Passwords", and then click on "Select-App" and choose "Mail", and then click on "Select Device" and choose "Other (custom name)" and then give it the name of your router or whatever you want to call this (not critical, I named mine RT-AC68U)...
e) it will spit out a password for you such as "HSGD YSHD UKSR ISUD"
d) put that password into the script, including the spaces in the PASS="your-gmail-password" variable. Like so:
PASS="HSGD YSHD UKSR ISUD"
Now, when the router reboots, Gmail will work again and email you.