DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

J has posted 6 posts at DZone. View Full User Profile

CiviCRM Membership renewal reminder emails from Schedule Jobs

09.11.2012
| 6015 views |
  • submit to reddit
Edit MembershipTypes: http://<base_url>/civicrm/admin/member/membershipType?reset=1&action=browse
For each MembershipType that should get a reminder, set the message to use, and the reminder days: http://<base_url>/civicrm/admin/member/membershipType?action=update&id=15&reset=1
Manually execute the Membership Reminder Date Processor: http://<base_url>/civicrm/admin/job?action=export&id=11&reset=1
Wait for the Scheduled Job "Membership status processor" to run: http://<base_url>/civicrm/admin/job?action=export&id=11&reset=1

CiviCRM changed how it runs its scheduled jobs (cronjobs) in 4.1, deprecating the UpdateMembershipRecord.php cronjob.  Follow these instructions to enable automatically sending membership renewal emails.

Renewal behavior: For all members with a Member Status of NOT overriden, 'pending', 'cancelled', or 'expired' and their membership end date is in X days from now (where X is any number, as set in the MembershipTypes settings from Step 2), send them exactly one reminder email.

Note: Steps 1-3 should be run exactly once.  Executing the Membership Reminder Date Processor job will reset the "sent or not" status, and cause duplicate reminders to be sent.