SMS Reminders

Membership Pro can send SMS messages to subscribers before or after their subscription expires, so they remember to renew. It can also send an SMS to administrators when someone subscribes, renews or upgrades.

What You Need

  1. The System - Membership Pro SMS plugin, which decides when to send messages.
  2. One SMS gateway plugin (Membership Pro SMS - ...), which sends them through your SMS provider.
  3. A Phone field in your subscription form, so subscribers' phone numbers are collected. Add it in Membership Pro -> Custom Fields. Subscribers without a phone number get no SMS.
  4. SMS settings on each plan.

Configure Plans

Edit the plan.

  1. On the Basic Information tab, in the Reminders Settings section, set Enable SMS to Yes. This switches on SMS for the plan, both reminders and administrator notifications. The option is shown only when the System - Membership Pro SMS plugin is enabled.
  2. Open the SMS Reminder Settings tab. Enter a number of days for Send First Reminder, Send Second Reminder and Send Third Reminder, and choose Before or After the subscription expires. Leave a field empty or set it to 0 to disable that reminder.
  3. Save the plan.

SMS Reminder Settings

SMS reminders follow the same rules as email reminders. A reminder is sent once per subscription and is skipped if the subscriber has already renewed. Reminders after expiry are sent only up to 60 days late. Group members do not receive SMS reminders.

Configure SMS Messages

Go to Membership Pro -> Emails & Messages and open the SMS Messages tab:

  • New Subscription SMS, New Subscription Renewal SMS and New Subscription Upgrade SMS: sent to administrators.
  • First Reminder SMS, Second Reminder SMS and Third Reminder SMS: sent to subscribers.

A reminder is sent only if the global message for that reminder is not empty. To use a different text for one plan, fill in the matching field in the plan's SMS Reminder Messages tab. The plan message overrides the global one.

You can use these tags:

Tag Description
[PLAN_ID], [PLAN_TITLE] Plan ID and title.
[ID] ID of the subscription record.
[FIRST_NAME], [LAST_NAME], [ORGANIZATION], [ADDRESS], [ADDRESS2], [CITY], [STATE], [ZIP], [COUNTRY], [PHONE], [FAX], [EMAIL], [COMMENT] Values of the matching profile fields.
[FROM_DATE], [TO_DATE], [END_DATE], [EXPIRE_DATE] Subscription dates. The last three have the same value.
[CREATED_DATE] Date the subscription was created.
[FROM_PLAN_TITLE] The previous plan. Only for an upgrade.

Enable the SMS Plugin

  1. Go to System -> Plugins.
  2. Find System - Membership Pro SMS and enable it.
  3. Open it and review the settings:
  • Administrator Phone Numbers: the numbers that receive an SMS when someone subscribes. Separate several numbers with a comma. Leave empty to not notify administrators.
  • Number Subscribers: how many subscribers receive an SMS each time the plugin runs. Default 15. Keep it low to avoid timeouts.
  • Time Ranges: limits the hours of the day when SMS messages are sent, in the Website Time Zone of your site. Use from,to hours, separated by semicolons. For example, 8,10;14,18 sends from 8:00 to 10:59 and from 14:00 to 18:59.
  • Trigger Reminder Code: a secret string for the cron job method below. Leave empty if you do not use cron.
  • Debug: if Yes, the plugin runs on every page load. Use it only for testing.

sms-reminder-plugin-settings

By default the plugin runs at the end of a page request, at most once every 20 minutes. This means a visitor must load a page to trigger it.

Enable an SMS Gateway Plugin

Membership Pro supports these gateways:

For the gateway you use, go to System -> Plugins, open the plugin, enter your account details and enable it:

  • Membership Pro SMS - Clickatell: API Token, Default Prefix.
  • Membership Pro SMS - Clockwork: API Key, Default Prefix.
  • Membership Pro SMS - Textlocal: API Key, Sender, Default Prefix.
  • Membership Pro SMS - Nexmo
  • Membership Pro SMS - Twilio

Default Prefix is added to phone numbers to make them international. For example, enter +44 for the United Kingdom.

The Nexmo and Twilio plugins are not included in the Membership Pro package because of their size. Download and install them from System -> Install -> Extensions:

Use a Cron Job

Instead of waiting for site visits, you can trigger SMS sending from a cron job. This also lets you send at a fixed time, for example 3 pm every day.

Joomla Scheduled Tasks cannot send SMS reminders, because the Task - Membership Pro plugin has no task for them. Use a cron job as described here.

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

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

    Replace yourdomain.com with your domain, and use the code you entered.

Once a code is set, the plugin runs only for requests that include it. Each request sends up to Number Subscribers messages, so schedule the cron job often enough to cover all subscribers.

The email reminder plugin also uses the trigger_reminder_code URL parameter. If you use both plugins with cron, set a different code in each and call two URLs.

Send an SMS to Selected Subscribers

To send a one-off message, use Batch SMS on the Subscriptions screen. See Send a Batch SMS.