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

add hook_civicrm_alterMailParams; add support for custom email headers

    Details

    • Type: Patch
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.2.1
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      There are two parts to this patch.

      First is adding a hook for an event after an email has been sent. Documentation for a hook_civicrm_postMailParams event has been created at http://wiki.civicrm.org/confluence/display/CRMDOC42/Hook+Reference#HookReference-hookcivicrmpostEmailSend.

      Second is to add support for custom headers to emails. While code is able to add the custom header to the email in hook_civicrm_alterMailParams, core code to handle the new parameter was necessary in a couple of places. Documentation that there is now an option to use a 'headers' value in $params for these two mail hooks has been added to the page cited above.

      If possibly, we would like this added to a 4.2 point release.

        Attachments

        1. patch.txt
          2 kB
          Joe Murray
        2. patch-10699-3.txt
          2 kB
          Joe Murray
        3. patch2.txt
          2 kB
          Joe Murray

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              joemurray Joe Murray
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: