Email notifications plugin

Want to share your OpenWrt / Gargoyle knowledge? Implemented a new feature? Let us know here.

Moderator: Moderators

User avatar
chigo58
Posts: 41
Joined: Wed Dec 22, 2010 5:09 am

Re: Email notifications plugin

Post 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
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

n0pin
Posts: 129
Joined: Thu Jan 09, 2014 6:39 am

Re: Email notifications plugin

Post 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.

ispyisail
Moderator
Posts: 4853
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Email notifications plugin

Post 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

User avatar
chigo58
Posts: 41
Joined: Wed Dec 22, 2010 5:09 am

Re: Email notifications plugin

Post 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!
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

n0pin
Posts: 129
Joined: Thu Jan 09, 2014 6:39 am

Re: Email notifications plugin

Post 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.

User avatar
chigo58
Posts: 41
Joined: Wed Dec 22, 2010 5:09 am

Re: Email notifications plugin

Post by chigo58 »

confirmed, all good :mrgreen: 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

ajs
Posts: 2
Joined: Mon Sep 29, 2014 7:41 am

Re: Email notifications plugin

Post by ajs »

I want to isntall this but I am a nube. Where do I run the script?

ajs
Posts: 2
Joined: Mon Sep 29, 2014 7:41 am

Re: Email notifications plugin

Post 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!

rehbergr
Posts: 7
Joined: Sat Sep 14, 2013 4:17 pm

Re: Email notifications plugin

Post 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.

Dr. Crash
Posts: 17
Joined: Fri Dec 14, 2012 6:04 pm

Re: Email notifications plugin

Post 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?

Post Reply