Email_n_Sitrep_Server
vining
Posts: 4,368
Here's a workspace that consist of 2 systems, 1 system (client) is intended to be a remote system and the other system is the server which is intended to be your shops master. The idea is runs servers on your shops master and have a specific port forwarded in your shops router to your master so that client's masters can send daily sitreps or other notifications directly to your master and your master in turn can send emails if that's the action your want to take.
So one system is your shop and the other is a client. In the client there are 2 .axi's, one is pulled into the main code and there another inteded to be pulled into modules so you can pass back notifications to the main which in turn opens a connection to your shop and sends the traffic. There's a weather module in this system that is used to demonstrate this.
You can modify the script to perform daily updates or anything else you might want to do. You can have these clients check for the daily cable line up changes and if there are changes your master can respond and send these changes to the client, etc. You'll have to script this yourself but it would be easy to do.
I just pulled this code from a working file so I could send it to someone and then I figured wtf maybe someone else would like to play with it but it's not clean or sanitized so if I left any personal info in the files let me know.
The server .axi runs 5 servers but the 1st was a server I used so axis cams could send me info so this can be eliminated and made into a regular sitrep server. Only 1 should be active at a time but as a client connects another server come online to listen so hopefully 1 server will always have it's ears listening for calling clients. Of course if the client can't get through it will try again later.
If anyone has question just shoot me a pm and I'll try to explain things that aren't obvious.
So one system is your shop and the other is a client. In the client there are 2 .axi's, one is pulled into the main code and there another inteded to be pulled into modules so you can pass back notifications to the main which in turn opens a connection to your shop and sends the traffic. There's a weather module in this system that is used to demonstrate this.
You can modify the script to perform daily updates or anything else you might want to do. You can have these clients check for the daily cable line up changes and if there are changes your master can respond and send these changes to the client, etc. You'll have to script this yourself but it would be easy to do.
I just pulled this code from a working file so I could send it to someone and then I figured wtf maybe someone else would like to play with it but it's not clean or sanitized so if I left any personal info in the files let me know.
The server .axi runs 5 servers but the 1st was a server I used so axis cams could send me info so this can be eliminated and made into a regular sitrep server. Only 1 should be active at a time but as a client connects another server come online to listen so hopefully 1 server will always have it's ears listening for calling clients. Of course if the client can't get through it will try again later.
If anyone has question just shoot me a pm and I'll try to explain things that aren't obvious.
0
Comments
Because more and more ISPs require user and password of the account owner to access the SNMP server. It's not a ver defensible position from an indemnity standpoint if something goes wrong with the client's email account.
In addition whenever something changes on how the client access email you end up reprogramming a system and good luck billing that out...
I've been doing this for years and it works great and is easily manageable and scaleable.
edit:
I also made changes to fnOpenServer() function, basically uncommented stuff that was commented out when I intially tested the code.
That way everyone can hook in/fork, on your solution.