You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

trying to get emails from Distribution list in CPM

Received Response
edited Oct 14, 2016 10:51PM in Agent Desktop 5 comments


i have created a distribution list in RNT Console trying to get those email address in CPM to use them in MailMessage, i am using this code but it is not working.

$roql_result_set = RNCPHP\ROQL::query( "SELECT Email FROM DistributionEmailList where name = '<Distribution List name>'" );

while($roql_result = $roql_result_set->next())
    while ($row = $roql_result->next())
    $distro = $distro.$row;


i get an "Array" String when i print $distro but not sure how to get email list. i would like to use $distro in below code:

$mm = new RNCPHP\MailMessage();
$mm->To->EmailAddresses = array($distro);

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!