Page MenuHomePhabricator

Automatic thank you email from Civi for Organization Contact Types
Closed, ResolvedPublic4 Estimated Story Points

Description

A recent major donor (where the gift was made from an Organization) pointed out that the email greeting for the automatic thank you email they received via Civi did not address them correctly it read - " Dear donor" and not the name under which they made the donation.

CID - 3690301

This gift was recently imported via the weekly Organization Engage import and an email was included for this donation on the import and therefore triggered the automatic thank you email for this donor.

Are all Organizations in Civi receiving 'Dear donor' in the automatic email rather than the name under which they make their gift?

Is there a way to pull in the Organization name for the automatic thank you email rather than 'Dear donor'?

Event Timeline

DStrine subscribed.

We have probably just been saying "dear donor" in these cases. I see there is a board member associated with this contact. Would you want us to address the board member if present? If not, we could just address them as "Organisation Name" or "Dear Organisation Name". What would you like?

I think we assumed the email_greeting was the field used for the salutation in the automatic email? That would likely be our preference but if not I think "Dear Friends of Organization Name" would be preferred?

Dwisehaupt set the point value for this task to 4.May 9 2022, 8:49 PM

@Dwisehaupt and @Eileenmcnaughton I wasn't sure who to bump this up to, but we're looking to automate more of the thank you letters we send in major gifts and since we have a lot of organizations that make large gifts, this needs to be fixed before we can do that. Is this an easy fix in the donor thank you template?

I think we can do something like {if '{contact.contact_type}' === 'Organization'}{contact.email_greeting_display}{/else}whatever is in place now {/if}`

This is really important for English Language & major gifts orgs. Other languages less so but medium priority on other orgs

The email greeting field for Organizations in Civi was updated by @Eileenmcnaughton during Civi fortnightly - I will test and report back!

@Eileenmcnaughton I created CID 57344474 and tried hand entering a donation and saving it, but the auto email still shows 'dear donor.' I tested it on an import as well and 'dear donor' again! :/

@TSkaff - I guess the templates kinda 'belong' to you know so looping you in -

The proposed change is probably from

image.png (310×694 px, 28 KB)

to

image.png (414×1 px, 48 KB)

ie adding

{elseif '{contact.contact_type}' === 'Organization'}
  {contact.email_greeting_display}

There are 3 things that strike me from a tech POV looking at this

  1. we need to test the change
  2. perhaps if we added an example to the sample data that would be enough?
  3. The above uses a token ({contact.contact_type}' ) - that might be slower than a variable - we have kinda assumed that to be the case elsewhere & I guess this close to big english we should again (variables look like {$first_name} & are pre-loaded / coded by fr-tech whereas tokens look like {contact.first_name} and are loaded during rendering / provided by CiviCRM core

Hi all, sorry I was a bit unclear where I was needed. So where this stands is you'd like me to make the above ^ change to all TY email templates, is that correct?

(And in English only?)

I saw "we need to test this" and would agree, particularly during such a busy time for fundraising. Happy to hop on a quick meet with anyone if needed.

Ya, I set one up. Feel free to move it!

Change 855183 had a related patch set uploaded (by Eileen; author: Eileen):

[wikimedia/fundraising/crm@master] Add Organization to examples for message templates

https://gerrit.wikimedia.org/r/855183

Change 855419 had a related patch set uploaded (by Eileen; author: Eileen):

[wikimedia/fundraising/crm@master] Remove pseudo-contact ids from example contacts.

https://gerrit.wikimedia.org/r/855419

Change 855183 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Add Organization to examples for message templates

https://gerrit.wikimedia.org/r/855183

Change 855419 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Remove pseudo-contact ids from example contacts.

https://gerrit.wikimedia.org/r/855419

Updated code

{if $first_name and $last_name}
Dear {$first_name},
{elseif $contact_type === 'Organization' && $email_greeting_display}
{$email_greeting_display},
{else}
Dear donor,
{/if}

Need to do thank you & Endowment

@TSkaff @MDemosWMF

I just got the updated version..... note only en_US templates are updated for this & only Thank You & Endowment Thank You

image.png (248×1 px, 66 KB)