Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
How to get email recipient list from another database?
-
Hi everyone!
We are planing to send alarms via email to recipients by using email event handler. But we would like to get recipient list from another database. Can we use script in the email event handler to get recipient list?
How can we get mailing recipient list from another database?
Mango version is v3.7.4.
Thanks in advance!
-
No, because you need to pre-populate the emails to send the alerts to.
What would be better is to run a script on an event going high.This forum post here shows you how to send an email from the mango javascript system:
https://forum.infiniteautomation.com/topic/3147/email-last-day-s-events/2
If you combine that with the http handler, you can request your recipients, from your other system then populate with the affected recipients emails.Fox