Confirm this issue on 1.6.2 (1043ND v1.7) tooSARS wrote:I'm using the newest Gargoyle (ver 1.6.2) and have the same issue like above descriptionrichi001 wrote:Hi All,
I have a small issue with this plug in, I currently run 1.6.1, and each time I try to save the settings, it resets and empties the fields each time I click out.
When I send a test email, it works fine.
I assume its because of the version of firmware I am running?
Email notifications plugin
Moderator: Moderators
Re: Email notifications plugin
x2 Archer C5,C7 - Stock | x1 TL-WA730RE v1 - Openwrt 14.07 | x2 TL-WR1043ND v1.7 - Gargoyle v1.6.X http://goo.gl/VMbxcH | x2 WRT54GL v1.1 Tomato v1.28.7821 MIPSR1-Toastman-ND, 14929_vpn | x1 WHR-HP-G54 - Gargoyle 1.4.7
Re: Email notifications plugin
I fixed the bug, which prevented settings from saving. Run this command to reinstall (also updated link in first post):
I also minified JS code. You can see unminified version here:
http://fpaste.org/135290/32386214/raw/
Code: Select all
wget -q -O - "http://fpaste.org/135288/41132367/raw/" | tr -d '\r' > /tmp/setup.sh && chmod +x /tmp/setup.sh && sh /tmp/setup.sh
http://fpaste.org/135290/32386214/raw/
I will probably implement encryption in future. I don't own any powerful router, so I will have to work in VirtualBox to implement encryption, which is the reason I didn't implement it in the first place.ispyisail wrote:I haven't used this plug in yet but it has just dawned on me how cool this can be
Any chance of encryption for more powerful routers?
We now live in an Edward Snowden world
Re: Email notifications plugin
I will probably implement encryption in future. I don't own any powerful router, so I will have to work in VirtualBox to implement encryption, which is the reason I didn't implement it in the first place.

Thanks again for sharing your work
Re: Email notifications plugin
Thanks for the update. Ran it and refreshed http://192.168.2.1/email.sh. Settings didn't appear, so might I have to reboot the router for changes to take effect? or perhaps re-enter the settings? Thanks again!
x2 Archer C5,C7 - Stock | x1 TL-WA730RE v1 - Openwrt 14.07 | x2 TL-WR1043ND v1.7 - Gargoyle v1.6.X http://goo.gl/VMbxcH | x2 WRT54GL v1.1 Tomato v1.28.7821 MIPSR1-Toastman-ND, 14929_vpn | x1 WHR-HP-G54 - Gargoyle 1.4.7
Re: Email notifications plugin
You should re-enter the settings, as I messed up saving part of code in the previous release.chigo58 wrote:Thanks for the update. Ran it and refreshed http://192.168.2.1/email.sh. Settings didn't appear, so might I have to reboot the router for changes to take effect? or perhaps re-enter the settings? Thanks again!
Re: Email notifications plugin
confirmed, all good
well done.

x2 Archer C5,C7 - Stock | x1 TL-WA730RE v1 - Openwrt 14.07 | x2 TL-WR1043ND v1.7 - Gargoyle v1.6.X http://goo.gl/VMbxcH | x2 WRT54GL v1.1 Tomato v1.28.7821 MIPSR1-Toastman-ND, 14929_vpn | x1 WHR-HP-G54 - Gargoyle 1.4.7
Re: Email notifications plugin
I want to isntall this but I am a nube. Where do I run the script?
Re: Email notifications plugin
Woot Worked it out. Installed the webshell plugin and ran it there working like a charm! thanks!ajs wrote:I want to isntall this but I am a nube. Where do I run the script?
Re: Email notifications plugin
Any plans to add TLS/SSL authentication? I am interested in the plugin bud sadly my ISP requires encrypted login and blocks port 25 outbound so I can even find and open relay.
Re: Email notifications plugin
I like the idea (by the way, you want the word "recipient" not "receipement" for the address/person you send the email to).
I found the UI for setting times confusing, and am wondering if it works? Look at the image below. With all those times selected on multiple days, does the summary at the bottom really make sense? It seems like times are missing? Especially the 5:15.

As a note, I would have picked "green" to indicate something will happen. "Red" is usually a "no go." I think green on a white background probably would work just fine:

There's also a number of errors in the browser's console:
Resource interpreted as Script but transferred with MIME type text/html: "http://ib.adnxs.com/a_usersync?c=0&cbfn=ANX_async_load". ANX_async_usersync.js:19
Uncaught SyntaxError: Unexpected identifier email.sh:63
Uncaught SyntaxError: Unexpected token : email.sh:73
Uncaught ReferenceError: raw_cron_data is not defined email.js?1.6.2:1
Uncaught TypeError: Cannot read property 'rows' of null email.js?1.6.2:1
P.S.: Do you really need to use the IP of the mail server? No name resolution?
I found the UI for setting times confusing, and am wondering if it works? Look at the image below. With all those times selected on multiple days, does the summary at the bottom really make sense? It seems like times are missing? Especially the 5:15.

As a note, I would have picked "green" to indicate something will happen. "Red" is usually a "no go." I think green on a white background probably would work just fine:

There's also a number of errors in the browser's console:
Resource interpreted as Script but transferred with MIME type text/html: "http://ib.adnxs.com/a_usersync?c=0&cbfn=ANX_async_load". ANX_async_usersync.js:19
Uncaught SyntaxError: Unexpected identifier email.sh:63
Uncaught SyntaxError: Unexpected token : email.sh:73
Uncaught ReferenceError: raw_cron_data is not defined email.js?1.6.2:1
Uncaught TypeError: Cannot read property 'rows' of null email.js?1.6.2:1
P.S.: Do you really need to use the IP of the mail server? No name resolution?