The Thinkery

Not finding what you're looking for? Don't hesitate to contact us!

Before Posting...

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.
×
Support Policy Notice

As outlined in our Rules section (though never closely followed by our staff!), effective immediately we will no longer be taking time to provide customizations of our products.

Send emails to all users every time

  • carlosegr
  • carlosegr's Avatar Topic Author
  • Offline
  • Puzzler
  • Puzzler
More
12 years 9 months ago #5618 by carlosegr
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

Any idea on how to do that

Thanks

Carlos

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #5623 by vinny
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.

Vinny - The Thinkery
Good reviews on the JED make us work harder :) | IProperty | Work Force | Report Card

Please Log in or Create an account to join the conversation.

  • carlosegr
  • carlosegr's Avatar Topic Author
  • Offline
  • Puzzler
  • Puzzler
More
12 years 9 months ago #5624 by carlosegr
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

my email, if you want to send the quote directly to me, is This email address is being protected from spambots. You need JavaScript enabled to view it.

Please let me know

Thanks

Carlos

Please Log in or Create an account to join the conversation.

Moderators: vinny
Time to create page: 0.222 seconds