Page 2 of 2

Re: Email notifications plugin

Posted: Sun Sep 14, 2014 9:41 am
by chigo58
SARS wrote:
richi001 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?
I'm using the newest Gargoyle (ver 1.6.2) and have the same issue like above description :?
Confirm this issue on 1.6.2 (1043ND v1.7) too

Re: Email notifications plugin

Posted: Sun Sep 21, 2014 2:28 pm
by n0pin
I fixed the bug, which prevented settings from saving. Run this command to reinstall (also updated link in first post):

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
I also minified JS code. You can see unminified version here:

http://fpaste.org/135290/32386214/raw/
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 :(
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.

Re: Email notifications plugin

Posted: Sun Sep 21, 2014 4:34 pm
by ispyisail
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

Posted: Mon Sep 22, 2014 3:15 pm
by chigo58
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

Posted: Tue Sep 23, 2014 1:01 am
by n0pin
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!
You should re-enter the settings, as I messed up saving part of code in the previous release.

Re: Email notifications plugin

Posted: Tue Sep 23, 2014 11:57 am
by chigo58
confirmed, all good :mrgreen: well done.

Re: Email notifications plugin

Posted: Mon Sep 29, 2014 7:43 am
by ajs
I want to isntall this but I am a nube. Where do I run the script?

Re: Email notifications plugin

Posted: Wed Oct 01, 2014 8:39 pm
by ajs
ajs wrote:I want to isntall this but I am a nube. Where do I run the script?
Woot Worked it out. Installed the webshell plugin and ran it there working like a charm! thanks!

Re: Email notifications plugin

Posted: Mon Nov 10, 2014 7:35 pm
by rehbergr
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

Posted: Tue Nov 11, 2014 3:10 am
by Dr. Crash
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.

Image

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:

Image

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?