I would like to notify staff from within an xlate action whenever a tbllookup fails. My first attempt at this used the smtp and mime tcl packages to send an email to a specified address.
When I tested the xlate using the testing tool, everything worked as expected. The table lookup would fail and the email would be sent. Sweet!
When I then moved the xlate into our test environment the thread would crash. I removed the smtp code from the xlate, cleaned up the pid file etc, and the thread would operate correctly.
Should this work? That is, are there some aspects of the engine or the translate thread that would prevent an SMTP connection from within the translate? Do you have any suggestions on how I might be able to troubleshoot this problem?
Thanks for your time.
–dennis