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