Not finding what you're looking for? Don't hesitate to contact us!
Before posting questions in the forums, please be sure to read the FAQs by clicking on the FAQs link in the sidebar product menu. You must be logged in and have a valid subscription to access the SUPPORT FORUMS.
carlosegr created the topic: Send emails to all users every time
My client needs to send a notification email to all users in the group every time a project log or document is created from the back-end. Similar to the feature when a new log or document is created in the front-end but instead to send the email the admin they need to all users in the group
vinny replied the topic: Re: Send emails to all users every time
Hi - you could create a new function similar to the 'notifyAdmin()' function in the front-end 'helpers/html.helper.php' 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/log.php' store() method you would call 'projectlogHTML::notifyGroup($row->id, 'log');' just before returning the $row->id. Hope this helps.
carlosegr replied the topic: Re: Send emails to all users every time
Thank you Vinny, do you think you can do this change for me? if you are interested please send me a quote, I'll tell my client that I found a programmer with the expertise to do this change, I am sure she'll pay a reasonable amount of money.
I agree with you, the emails should be sent after save the log or document but as an optiol using a pop up screen asking something like do you want to notify the group? yes or no if yes the new function will be called and an email will be sent to all users in the group