Answers.Body: <p>To add additional 'To' in email on Find Contribution action is not supported because the html is build using contribution id, Hence manually added email will not have contribution id selected from Find contribution result. It may be little tricky to change the code to support this. Below patch should work if your email body doesn't have contribution tokens.</p>
  <pre><code>diff --git a/CRM/Activity/BAO/Activity.php b/CRM/Activity/BAO/Activity.php
  index 4fe6e48..ef36a12 100644
  --- a/CRM/Activity/BAO/Activity.php
  +++ b/CRM/Activity/BAO/Activity.php
  @@ -1124,12 +1124,16 @@ class CRM_Activity_BAO_Activity extends CRM_Activity_DAO_Activity {
         $contactId = $values['contact_id'];
         $emailAddress = $values['email'];
   
  -      if (!empty($contributionDetails)) {
  +      if (!empty($contributionDetails[$contactId])) {
           $subject = $contributionDetails[$contactId]['subject'];
           $text = $contributionDetails[$contactId]['text'];
           $html = $contributionDetails[$contactId]['html'];
         }
  -
  +      else {
  +        $subject = $subject;
  +        $text = $text;
  +        $html = $html;
  +      }
         if (!empty($details) &amp;&amp; is_array($details[&quot;{$contactId}&quot;])) {
           // unset email from details since it always returns primary email address
           unset($details[&quot;{$contactId}&quot;]['email']);
  </code></pre>
  <p>Other alternate method is to use Advance Search, Display result as Contact, add contribution filter. Select Contact and choose email action.</p>
  <p>HTH</p>
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-27T10:44:53.217Z
Answers.Text: Thanks @pradeep
Answers.UserDisplayName: Tapash
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-27T08:13:32.723Z
Answers.LastActivityDate: 2021-05-27T08:13:32.723Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p><strong>Reproduction steps:</strong></p>
  <ul>
  <li><p>Click on **Find Contribution -&gt; enter a contact name -&gt; click search **.</p>
  </li>
  <li><p>Select 1 contact (contribution) from the list -&gt; select &quot;Email send now to 50 or less&quot; from action menu</p>
  </li>
  <li><p>Email popup window opens. -&gt; in the TO field add a second recipient -&gt; Select a template or add text in body</p>
  </li>
  <li><p>Click Send</p>
  </li>
  </ul>
  <p><strong>Current behaviour:</strong></p>
  <ul>
  <li><p>First recipient that was selected from find contribution list receives the email with body, subject &amp; attachment (if any)</p>
  </li>
  <li><p>Second recipient who was added later receives a blank email with no body or subject. If any attachment were added, that gets added though.</p>
  </li>
  </ul>
  <p><strong>Expected behaviour</strong></p>
  <ul>
  <li>Second recipient who was added later should also receive the same email as the first recipient.</li>
  </ul>
  <p>Does anyone have a fix for this please? Thanks</p>
  
Tags: <contacts><email><contributions>
Title: Secondary recipient email body is blank when sent using "Find Contribution"
ThreadText: # Secondary recipient email body is blank when sent using "Find Contribution"
  
  (Asked by: username_0 on 2021-05-26)
  
  **Reproduction steps:**
  
  * Click on \*\*Find Contribution -> enter a contact name -> click search \*\*.
  * Select 1 contact (contribution) from the list -> select "Email send now to 50 or less" from action menu
  * Email popup window opens. -> in the TO field add a second recipient -> Select a template or add text in body
  * Click Send
  
  **Current behaviour:**
  
  * First recipient that was selected from find contribution list receives the email with body, subject & attachment (if any)
  * Second recipient who was added later receives a blank email with no body or subject. If any attachment were added, that gets added though.
  
  **Expected behaviour**
  
  * Second recipient who was added later should also receive the same email as the first recipient.
  
  Does anyone have a fix for this please? Thanks
  
  **Tags:** contacts, email, contributions
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-05-27. Score: 2 | Accepted answer
  
  To add additional 'To' in email on Find Contribution action is not supported because the html is build using contribution id, Hence manually added email will not have contribution id selected from Find contribution result. It may be little tricky to change the code to support this. Below patch should work if your email body doesn't have contribution tokens.
  
  ```
  diff --git a/CRM/Activity/BAO/Activity.php b/CRM/Activity/BAO/Activity.php
  index 4fe6e48..ef36a12 100644
  --- a/CRM/Activity/BAO/Activity.php
  +++ b/CRM/Activity/BAO/Activity.php
  @@ -1124,12 +1124,16 @@ class CRM_Activity_BAO_Activity extends CRM_Activity_DAO_Activity {
         $contactId = $values['contact_id'];
         $emailAddress = $values['email'];
   
  -      if (!empty($contributionDetails)) {
  +      if (!empty($contributionDetails[$contactId])) {
           $subject = $contributionDetails[$contactId]['subject'];
           $text = $contributionDetails[$contactId]['text'];
           $html = $contributionDetails[$contactId]['html'];
         }
  -
  +      else {
  +        $subject = $subject;
  +        $text = $text;
  +        $html = $html;
  +      }
         if (!empty($details) && is_array($details["{$contactId}"])) {
           // unset email from details since it always returns primary email address
           unset($details["{$contactId}"]['email']);
  
  ```
  
  Other alternate method is to use Advance Search, Display result as Contact, add contribution filter. Select Contact and choose email action.
  
  HTH
  
  username_1
  
  > **Comments:**
  > **username_0**: Thanks @username_1  
  
  ---
  
  