I am attempting to send an email form Snap Creator and these commands work from the command line or from a batch file, however when I try to use the command via the event configuration the job gets to the event task and just stops at that point and never returns. I have tried changing the SC server process to start as a service with a domain account rather than the local system account and have the same behavior. So has anyone done this before or what exactly am I missing here? This I would say is a powershell issue, but I am not 100% sure on that and just wanted to see if anyone else has some feedback. Thank you.
Ok, so I am closer now than I was before, the SUCCESS_TRAP works, the SENDTRAP does not, basically the message needs to be single quoted to be interpreted properly by powershell, so I manually single quoted the SUCCESS_MSG, now trying to figure out how to do that for the MSG variable...
-Need to have the Snap Creator service started by a domain user rather than local user
-Need to have powershell.exe in your path
-Had to place single tick quotes around the message in the SUCCESS_MSG variable
Thanks for the recommendation, yep by placing a single quote on each side with a space I realized it worked and I did not have to make any other special changes, single quote on both sides otherwise made it interpret as a sting i.e. as '%MSG' instead of SNAPCREATOR MESSAGE...