I have a 3rd party component for Joomla that is a basic project management application. The admin is able to define users, groups and projects. The website will send an e-mail notification when a new post has been made to a project, but only one user is notified. I need the mail function modified so that any user who is in the group assigned to the project will be notified of an update posted.
Here are details about how this would be implemented from the developer who wrote the extension (who is not available to do the work:)
Hi - you could create a new function similar to the 'notifyAdmin()' function in the front-end 'helpers/[url removed, login to view]' file and just pass it the project id and type of notification. The function could then find all groups/users related to the project and send the email notification.
This function would be called from the 'store()' method in your back-end models - so when you save a log for instance, in your 'admin/models/[url removed, login to view]' store() method you would call 'projectlogHTML::notifyGroup($row->id, 'log');' just before returning the $row->id. Hope this helps.
Mail would notify all users assigned to the project group ID. I also need the outgoing notification e-mail to include the comment that was posted to the project causing the notification.