You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was just wondering: is there any way, when integrating with another program such as Kuena, to leverage sending emails not just just admins but interested forum contirbutors when an idea is commented on?
Thanks a lot,
Carl
The text was updated successfully, but these errors were encountered:
I thought I'd mention my temporary fix to try out this behavior in case it's useful, or in case you want to caution me against it (I'm relatively new to PHP). I slightly altered the userideasadminmail.php to have your $recipient variable use an array of users instead.
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
// Select all records from the user profile table
$query = "SELECT email FROM #__users";
$db->setQuery($query);
// Load the results as a list of stdClass objects
$objectArray = $db->loadObjectList();
// Iterate through the array of objects, and add to a new array
$myRecipientArray=array();
foreach($objectArray as $obj){
array_push($myRecipientArray,$obj->email);
}
$recipientMail = $myRecipientArray;
Thanks again for creating the component. I'm finding it very useful.
Hi Todor,
I was just wondering: is there any way, when integrating with another program such as Kuena, to leverage sending emails not just just admins but interested forum contirbutors when an idea is commented on?
Thanks a lot,
Carl
The text was updated successfully, but these errors were encountered: