Email Reminders

Membership Pro can email subscribers before or after their subscription expires to remind them to renew. Reminders are set per plan, the messages are configurable, and a system plugin sends the emails.

How It Works

  1. You set the reminder timing on each plan.
  2. The System - Membership Pro Reminder plugin finds subscriptions that are due a reminder and sends the emails in small batches.
  3. Each reminder is sent only once per subscription.

The plugin sends a reminder only when all of these are true:

  • The plan has a value for that reminder, and the plan is not a lifetime plan.
  • The subscription is active or expired.
  • The subscriber has not renewed since. If a newer active subscription to the same plan exists for the same user or email, the reminder is skipped.
  • The subscription is not a group member's record, unless Send To Group Members is set to Yes in the plugin.

Reminders after expiry are sent only up to 10 days after the due date. If your site was not triggered during that window, the reminder is not sent.

Configure Plans

  1. Edit the plan and find the Reminders Settings section on the Basic Information tab.
  2. Enter the number of days for Send First Reminder, Send Second Reminder and Send Third Reminder.
  3. For each reminder, choose Before or After the subscription expires.
  4. Leave a field empty or set it to 0 to disable that reminder.
  5. Save the plan.

For example, set the first reminder to 30 Days Before, the second to 7 Days Before and the third to 3 Days After.

reminder-settings

If your installation also has the fourth, fifth and sixth reminder fields, they work the same way, with matching message fields.

For a recurring plan with a limited number of payments, the plan also has a Send Subscription End setting. It works like the reminders above. It emails the subscriber when the last payment has been made and the subscription is about to end. The subject and body come from Recurring Subscription End Email Subject and Recurring Subscription End Email Body.

Configure Reminder Messages

Membership Pro installs default reminder messages. To change them, go to Membership Pro -> Emails & Messages and open the Reminder Messages tab:

  • First Reminder Email Subject and First Reminder Email Body
  • Second Reminder Email Subject and Second Reminder Email Body
  • Third Reminder Email Subject and Third Reminder Email Body

You can use these tags in the messages:

Tag Description
[PLAN_TITLE] Plan title.
[FIRST_NAME], [LAST_NAME] Subscriber's name.
[NUMBER_DAYS] Days before or after the subscription expires.
[EXPIRE_DATE] Date the subscription expires.
[MEMBERSHIP_ID] Membership ID.
[PAYMENT_METHOD] Payment method of the subscription.

Other subscription tags, such as [FROM_DATE], [TO_DATE], [EMAIL] and custom field tags, also work.

To use different messages for one plan, edit the plan, open its Reminder Messages tab and fill in the messages there. A plan message overrides the global message. Leave the plan fields empty to use the global messages.

Enable the Reminder Plugin

  1. Go to System -> Plugins.
  2. Find System - Membership Pro Reminder and enable it.
  3. Open it and review the settings:
  • Cache Time (Hours): how often the plugin runs. Default 2. It is only used when you do not trigger the plugin from a cron job.
  • Send To Group Members: if Yes, reminders are also sent to the members of a group membership. Default No.
  • Number Subscribers: how many subscribers receive a reminder each time the plugin runs. Default 10. Keep it low to avoid timeouts and your host's hourly email limit.
  • BCC Email: a copy of every reminder is sent to this address, so you can monitor what is sent.
  • Trigger Reminder Code: a secret string used for the cron job method below. Leave it empty if you do not use cron.
  • Time Ranges: limits the hours of the day when reminders are sent. See below.

system-reminders-plugin

Trigger Reminders

By default, the plugin runs at the end of a page request. This means someone, even a search engine bot, must visit the site to trigger it. On a site with very little or very heavy traffic, this can be unreliable.

The expiry reminders are not available as a Joomla Scheduled Task. The Task - Membership Pro plugin does not include one, so the System - Membership Pro Reminder plugin is required. To avoid depending on visitors, trigger the plugin from a cron job as described below. Scheduled tasks are used for other jobs, such as Offline Payment Reminder.

Use a Cron Job

  1. Edit the System - Membership Pro Reminder plugin and enter a secret string in Trigger Reminder Code, for example mysecretcode.
  2. In your hosting control panel, create a cron job that requests this URL with cURL:

    https://yourdomain.com/index.php?trigger_reminder_code=mysecretcode

    Replace yourdomain.com with your domain and mysecretcode with your code. See this Stack Overflow answer for how to set up the cron command.

Once a code is set, the plugin runs only for requests that include the correct code. Normal page visits no longer trigger it, and Cache Time (Hours) is ignored, so the schedule is controlled by your cron job.

curl

Control When Reminders Are Sent

Reminders can otherwise go out at any hour, including midnight. Use Time Ranges in the plugin to limit sending to certain hours. The time zone is the Website Time Zone in System -> Global Configuration.

  • Format: from,to using hours from 0 to 23. Separate several ranges with a semicolon. Both hours are inclusive.
  • 5,14 sends reminders only from 5:00 to 14:59.
  • 8,10;14,18 sends reminders from 8:00 to 10:59 and from 14:00 to 18:59.

Log Reminder Emails

To keep a record of the reminders sent:

  1. Go to Membership Pro -> Configuration.
  2. In the Mail Settings section of the General tab, set Log Emails to Yes.
  3. Save.

Every email sent is now logged, with its subject and message. View the log at Membership Pro -> Tools -> Emails Log. To clean the log automatically, use the Clean Emails Log scheduled task.