Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-20638

Add a hook to modify activity assignee email recipients

    Details

    • Type: Improvement
    • Status: Won't Do
    • Priority: Minor
    • Resolution: Won't Do
    • Affects Version/s: 4.7.19
    • Fix Version/s: None
    • Component/s: Core CiviCRM
    • Labels:
    • Versioning Impact:
      Minor (add functionality in backwards-compatible manner)
    • Documentation Required?:
      Developer Doc
    • Funding Source:
      Contributed Code
    • Verified?:
      No
    • How it works currently:
      Hide
      Activity assignees are sent an email of the activity, providing the 'Notify Activity Assignees' option is enabled.

      Currently there is no way to modify the behaviour other than enable/disable.
      Show
      Activity assignees are sent an email of the activity, providing the 'Notify Activity Assignees' option is enabled. Currently there is no way to modify the behaviour other than enable/disable.
    • How it should work:
      This creates a new hook hook_civicrm_activityMailRecipients() that enables extension developers to modify the list of recipients.
    • Acceptance Criteria:
      Hide
      When hook_civicrm_activityMailRecipients() is implemented in an extension, check that activity assignment emails are as modified.

      If the hook is not implemented there should be no change to current behaviour.

      Note that this no effect unless the 'Notify Activity Assignees' option is enabled.
      Show
      When hook_civicrm_activityMailRecipients() is implemented in an extension, check that activity assignment emails are as modified. If the hook is not implemented there should be no change to current behaviour. Note that this no effect unless the 'Notify Activity Assignees' option is enabled.

      Description

      Add a new hook to allow modification of the list of recipients receiving activity assignment emails.  Use cases include:

      • don't send emails if the assignee is the activity source (person adding the activity) - they already know about this
      • don't send emails to assignees about selected activity types

        Attachments

          Activity

            People

            • Assignee:
              jitendra.purohit Jitendra Purohit
              Reporter:
              ayduns Aidan Saunders
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: