Event Script interface to process emails
Question asked by Dave Lerner - December 15, 2015 at 11:12 AM
I've been poring through this forum and can't find any way to do this. I want to create an event to fire a script (powershell, batch, whatever), where the input to the script is the name of the email file in the spool. Even the message ID would work (since I could build the path from that). However, the actions for this even do not list anything like this for the parameters available to a command-line script. I want to be able to get the name of the spool file so I can make a copy of it, and conduct header analysis, etc. Anyone have any ideas on this? I can easily do this easily on any 'nix MTA, but it seems that Smartermail does not give you the message ID or filename as possible parameter.

1 Reply

Reply to Thread
Matt Petty Replied
Employee Post
If you go to Spool settings under General Settings for Admin.
Command-Line File this would be your EXE or BAT, it passes a filepath as a parameter. I would give that a look. Make sure your process ends when it is done as SM waits for your process or Command-Line Timeout to finish.
Matt Petty
Software Developer
SmarterTools Inc.
(877) 357-6278

Reply to Thread