Has anyone written a LUA script to send a mail directly i.e. using MAPI, NOT via the Mail Gateway probe?
We have a requirement to send alarms to a ticketing system to raise tickets, the only way to do this automatically is to send the alarm in the form of a mail message to a monitored mailbox. The ticketing system picks up the mail and uses the senders address to allocate the ticket to the correct team and retrive the correct details from the cmdb.
Using the mail gateway I can't change the source address of the email. I'm proposing calling an external script which will fake the from address from details in the alarm but it be a lot neater to do it all within UIM
The system is UIM 8.1 on Windows 2012
LUA can execute system/OS commands. So at a minimum, you can have a LUA script call a Windows script/exec to send the email.