• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Lan IP Triggered By Email

pieman82

Junior Member
Hello,

I'm not sure if this is dead simple or impossible but, I have a program that detects a change in state and sends an email. I need that email to trip a relay on the local network. The address that activates the relay is: http://192.168.1.2/state.xml?relayState=1.
It can also accept xml commands (if that helps).
Any ideas would be much appreciated.
 
I'm not sure what people use to get email these days. I use POP in Thunderbird.

Given a plaintext mailbox, from POP or a local mail server or whatever, I could grep for and count those emails, and use wget to call that address on a change in email count.
 
From what I understand of your requirements, either:
1. You can poll the mailserver (using fetchmail), and when an email with your crafted contents is delivered, execute a shell script (wget like Ken suggested, using Procmail).
2. Python script using poplib (POP3 mailbox access) with urlib (to make the HTTP GET request).
 
You need to explain what your email architecture is. For example, if you have an Exchange server, then a simple powershell or dotnet app to check mail would be easy enough. Both could call the resultant service as well.
 
Back
Top