Forum Discussion

Nathan_H_'s avatar
Nathan_H_
Ideator I
4 years ago
Solved

E-mail to Group Identity

Good day all.  I am having a problem figuring out how to create a list of e-mail addresses based on the members of an Identity.  I am trying to set up a C# Method to review an ItemType and send an e-...
  • AngelaIp's avatar
    4 years ago

    Hi Nathan,

    as far as I know email to Identity Groups should work OOTB. Check out this standard way to send an email from Aras:

    // Get Identity that shall receive the Email
    Item sentTo = inn.newItem("Identity", "get");
    sentTo.setProperty("name", "Administrators");
    sentTo = sentTo.apply();

    // Send Email
    try
    {
    bool result = this.email(email_msg, sentTo);

    ....

    The above one uses a standard Email Message Item. I guess there are full samples somewhere in this forum.

    Exception: If you use a full custom way to send emailing (cause of external mail server, etc.) you need to query the Identites by yourself...