You are browsing a read-only backup copy of Wikitech. The primary site can be found at wikitech.wikimedia.org

Fundraising/Internal Endpoints/End of year emails

From Wikitech-static
< Fundraising
Revision as of 23:07, 12 December 2021 by imported>Eileen (Removed references to drupal module)
Jump to navigation Jump to search

We send a letter for recurring donations once a year rather than as each donation is received. The code to do this is currently in

  • civicrm_extension wmf-thankyou

The code was written to bulk receipt recurring donations but a user-requested feature was added to support sending from the UI for a single donor. This UI feature is accessible from the actions menu (bottom right) from the contact summary screen.


The bulk jobs are to be scheduled - the idea is that there are 2 jobs

  • drush @wmff cvapi EOYEmail.MakeJob version=4 year=2021`) should be run just once. It populates a `wmf_eoy_receipt_donor` with a list of email addresses to receive an end of year summary, the relevant year, and the status of their summary
  • drush @wmff cvapi EOYEmail.Send version=4 year=2021`) should be run just once. It populates a `wmf_eoy_receipt_donor` with a list of email addresses to receive an end of year summary, the relevant year, and the status of their summary

When running the calculate job in 2021, it caused the civi UI to be slow as well as deadlocks for any running jobs.

'''eoy_receipt_send'''

This sends half the emails through frmx1001

'''eoy_receipt_send_two'''

This sends the other half of the emails through frmx2001

'''How to Run'''

# Turn off all the jobs and notify any civi users that the UI will be slow while the calculate job runs

# Run eoy_receipt_calculate. This only needs to be run once then everything in in the table for the email sends.

# Turn the jobs back on

# Test sending a receipt with slow start

# Turn the main sending jobs on