2
Events / E-mail / Command Line
Question asked by Rod Strumbel - 4/15/2019 at 9:18 AM
Unanswered
If I want to execute one of my own programs as the result of an Event occurring, WHERE does my program need to exist?   Or... should I be able to enter a full path on the command line action / Process field?

Have tried the later and it doesn't seem to work, it comes up with:

Command Line Action
Undefined
Undefined

And yet all fields are filled in.

Confirmed that the EXE is out there at the specified path, so dunno what I'm doing wrong.

Any input ?
Am ready to start using this operation extensively, but need to know the proper way of setting it up.
Couldn't find anything in the documentation to detail it out.

Rod



7 Replies

Reply to Thread
0
echoDreamz Replied
The process should be the full path to the executable, then the arguments field can be any additional args you need to pass into the process being executed.
0
Rod Strumbel Replied

Sort of figured that was how it was supposed to work.  Not working for me.   

Is this a feature not available in FREE version of SM (this is where I run all my tests before implementing into production for the office) ?

Here is my setup (yes, the EXE exists at the specified location):


Looking in the Command Line Action:



Also, in the Event Conditions, I'm assuming these are "AND" conditions and not "OR" conditions correct?

Thanks,

Rod


0
Rod Strumbel Replied
Tried adding R/W/M/X permissions for the SmarterMail website Application Pool... no difference, still appears as Undefined.   There is a red marker on the screen under the last several characters of the EXE I am trying to get it to run... almost like the path+name is too long?   Dunno.  Guessing here.
0
echoDreamz Replied
Yeah, I dont think it would be executed by the IIS worker process, it would be done by the SmarterMail windows service, which runs as SYSTEM by default.
0
Rod Strumbel Replied
Yeah, SYSTEM has FULL rights to the Programs folder and everything within it.  Still a no go with getting things setup properly.

While trying to figure this out... is there a way to pass a parameter to the EXE such as the SUBJECT of the message that triggered the Email event using a macro of some sort (or something similar)?

Thanks
0
echoDreamz Replied
We have an app that polls an account over IMAP to check for specific messages with a certain subject and then executes a bit of code, but this is a bit outside of what you are doing with the events system.
0
Rod Strumbel Replied
Yeah, that sounds similar to the process I'm building, just instead of polling, am looking to make it a "triggered" process based on the message being detected in the SmarterMail system level Events.

Also, I'm noticing that the "Events" log doesn't appear to record anything even though event logging is set to 'detailed'.  Was thinking I could go there to help debug and its empty.   So either not logging, or not getting to the events operations.  Can't tell which right now.  :)

Rod

Reply to Thread