Answers.Body: <p>Assuming that each contribution is separate, you can use the <a href="https://docs.civicrm.org/user/en/latest/contributions/manual-receipts-and-thank-yous/#grouped-contribution-thank-you-letters" rel="nofollow noreferrer">Thank you letters with grouped contribution</a> functionality to do what you want.  I find the formatting a little funky, but it works.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-17T10:27:12.733Z
Answers.LastActivityDate: 2018-08-17T10:27:12.733Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p><a href="https://civicrm.org/extensions/nzcofuzioncivitoken" rel="nofollow noreferrer">Civitoken</a> extensions provides additional tokens for contact. It would be worth trying the extension.</p>
  
  <p><a href="https://i.sstatic.net/3TM8v.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/3TM8v.png" alt="enter image description here"></a></p>
  
  <p>There are also few others </p>
  
  <ul>
  <li><a href="https://civicrm.org/extensions/contributions-table-token" rel="nofollow noreferrer">Contributions Table token</a> </li>
  <li><a href="https://civicrm.org/extensions/payment-tokens" rel="nofollow noreferrer">Payment Tokens</a></li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-16T23:17:02.523Z
Answers.LastActivityDate: 2018-08-16T23:23:03.347Z
Answers.LastEditDate: 2018-08-16T23:23:03.347Z
Answers.UserDisplayName: Pradeep Nayak
Answers.Body: <p>You can also use CiviRules to send out thank you letters. You could then trigger on contribution added and then set the conditions (such as amount between xx and yy, and status is completed, and financial type is z, etc). </p>
  
  <p>Use the Send e-mail action (provided by the email api extension) for sending the actual thank you e-mail. </p>
  
  <p>You have to create a message template for each type of thank you letter, and a civirule for each type of thank you.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-17T12:37:32.747Z
Answers.LastActivityDate: 2018-08-17T12:37:32.747Z
Answers.UserDisplayName: Jaap Jansma - CiviCooP
Body: <p>I recently took over the donor thank you letter process at the organization I work for and saw that Civi has the ability to create thank you letters for donors. </p>
  
  <p>The organization I work for has 5 separate funds that members can contribute to. We want to be able to be able to send an automated thank you letter to contributors that reflects all of their contributions.</p>
  
  <p>Is there a way to add an "if...then" sort of logic to these letters?</p>
  
  <p>For instance:</p>
  
  <ul>
  <li>Member One donates $10 to Fund A</li>
  <li>Member Two donates $10 each to Fund
  B, C, and D </li>
  <li>Member Three donates $10 each to Fund B and E</li>
  </ul>
  
  <p>We want to be able to automate letters that would say:</p>
  
  <ul>
  <li>Dear Member One, thank you for contributing $10 to Fund A.</li>
  <li>Dear Member Two, thank you for contributing $10 to Fund B, $10 to Fund C, and $10 to Fund D.</li>
  <li>and so on</li>
  </ul>
  
  <p>I see tokens that auto populate for name, date, and address, but not for our individual funds themselves. I also don't see a way of specifying most recent contribution -- only total all-time or total last year. </p>
  
  <p>Are there tokens I can use that will automatically pull from a member's contributions? Something like:</p>
  
  <blockquote>
    <p>Dear {firstname}, Thanks for donating {Fund A donation amount} to {Fund A}.</p>
  </blockquote>
  
  <p>Or is this functionality not possible on Civi? </p>
  
  <p>Thanks!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-08-20T08:15:35.447Z
Comments.Text: AFAIR there is no such thing in Civi. I would have a look at available extensions extending tokens and if nothing covers your needs, write your own. This is not too heavy and a good starting point is the docs https://docs.civicrm.org/user/en/latest/common-workflows/tokens-and-mail-merge/#custom combined with any token providing module source on github.
Comments.UserDisplayName: nielo
Tags: <civicontribute><civimail><contributions>
Title: Conditional logic in Thank You letters
ThreadText: # Conditional logic in Thank You letters
  
  (Asked by: username_0 on 2018-08-16)
  
  I recently took over the donor thank you letter process at the organization I work for and saw that Civi has the ability to create thank you letters for donors.
  
  The organization I work for has 5 separate funds that members can contribute to. We want to be able to be able to send an automated thank you letter to contributors that reflects all of their contributions.
  
  Is there a way to add an "if...then" sort of logic to these letters?
  
  For instance:
  
  * Member One donates $10 to Fund A
  * Member Two donates $10 each to Fund
    B, C, and D
  * Member Three donates $10 each to Fund B and E
  
  We want to be able to automate letters that would say:
  
  * Dear Member One, thank you for contributing $10 to Fund A.
  * Dear Member Two, thank you for contributing $10 to Fund B, $10 to Fund C, and $10 to Fund D.
  * and so on
  
  I see tokens that auto populate for name, date, and address, but not for our individual funds themselves. I also don't see a way of specifying most recent contribution -- only total all-time or total last year.
  
  Are there tokens I can use that will automatically pull from a member's contributions? Something like:
  
  > Dear {firstname}, Thanks for donating {Fund A donation amount} to {Fund A}.
  
  Or is this functionality not possible on Civi?
  
  Thanks!
  
  **Tags:** civicontribute, civimail, contributions
  
  > **Comments:**
  > **username_1**: AFAIR there is no such thing in Civi. I would have a look at available extensions extending tokens and if nothing covers your needs, write your own. This is not too heavy and a good starting point is the docs https://docs.civicrm.org/user/en/latest/common-workflows/tokens-and-mail-merge/#custom combined with any token providing module source on github.  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_2 on 2018-08-17. Score: 3
  
  Assuming that each contribution is separate, you can use the [Thank you letters with grouped contribution](https://docs.civicrm.org/user/en/latest/contributions/manual-receipts-and-thank-yous/#grouped-contribution-thank-you-letters) functionality to do what you want. I find the formatting a little funky, but it works.
  
  
  ---
  
  ### Answer by username_3 on 2018-08-16. Score: 3
  
  [Civitoken](https://civicrm.org/extensions/nzcofuzioncivitoken) extensions provides additional tokens for contact. It would be worth trying the extension.
  
  [![enter image description here](https://i.sstatic.net/3TM8v.png)](https://i.sstatic.net/3TM8v.png)
  
  There are also few others
  
  * [Contributions Table token](https://civicrm.org/extensions/contributions-table-token)
  * [Payment Tokens](https://civicrm.org/extensions/payment-tokens)
  
  
  ---
  
  ### Answer by username_4 on 2018-08-17. Score: 1
  
  You can also use CiviRules to send out thank you letters. You could then trigger on contribution added and then set the conditions (such as amount between xx and yy, and status is completed, and financial type is z, etc).
  
  Use the Send e-mail action (provided by the email api extension) for sending the actual thank you e-mail.
  
  You have to create a message template for each type of thank you letter, and a civirule for each type of thank you.
  
  
  ---
  
  