Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: Unscheduled
-
Fix Version/s: 4.7.19
-
Component/s: CiviMail, Core CiviCRM
-
Labels:
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Contributed Code
-
Verified?:No
Description
When trying to use civicrm hook_civicrm_alterMailParams to alter the email subject (e.g : replace custom tokens) , nothing will happen and your modifications to the mail subject will not have any affect on the sent email.
-
- The problem in action
if your myextension.php file contain this :
function myextension_civicrm_alterMailParams(&$params, $context) { $params['Subject'] = 'aaa'; $params['html'] = 'aaa'; }
and no matter what the original email subject and body is , you should recienve an email with subject 'aaa' and body 'aaa' but what you will actually get is an email with only body = 'aaa' and the subject will equal the original assgined to it from UI.
This PR fixes this so in the case above you will have both subject and body = 'aaa'