• Recent
    • Tags
    • Popular
    • Register
    • Login

    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.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    How to get email recipient list from another database?

    Scripting general Discussion
    2
    2
    823
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Malaguena
      last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • MattFoxM
        MattFox
        last edited by

        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

        Do not follow where the path may lead; go instead where there is no path.
        And leave a trail - Muriel Strode

        1 Reply Last reply Reply Quote 0
        • First post
          Last post