FCHubFCHub.co

Email Notifications

The eight transactional emails FCHub Memberships sends across the membership lifecycle, with smart codes, templates, and delivery details.

FCHub Memberships sends 8 transactional emails that cover the full membership lifecycle. Each email can be individually enabled or disabled, and templates are customizable with smart code placeholders.

Delivery Method

All emails are dispatched through Action Scheduler when available (which FluentCart includes). This means emails are sent asynchronously — they don't block the main request. If Action Scheduler is not available, emails fall back to synchronous wp_mail().

The async hook is fchub_memberships_send_email, which receives the recipient email, subject, body, and headers as arguments.

Every email is sent as HTML with a responsive template wrapper. The wrapper includes a branded header (using your site name), a content area, and a footer with copyright notice.

Email Types

Sent when a membership is first granted to a user. This is the welcome email.

When it fires: On fchub_memberships/grant_created event

Data included:

FieldDescription
plan_idThe membership plan ID
plan_titleThe plan name
resourcesArray of immediately accessible resources with title and URL
drip_itemsArray of upcoming drip-scheduled items with title and unlock date

Default subject: "Welcome to {plan_name}!"

Smart codes:

CodeValue
{user_name}Member's display name
{user_email}Member's email address
{plan_name}Membership plan title
{site_name}WordPress site name
{account_url}Account page URL
{resources_list}HTML list of immediately accessible resources with links
{drip_schedule}HTML list of upcoming drip content with unlock dates

Email Settings

All email settings are managed in Memberships > Settings:

SettingDescription
email_access_grantedEnable/disable the welcome email (default: yes)
email_access_expiringEnable/disable the expiring notification (default: yes)
email_access_revokedEnable/disable the revocation email (default: yes)
email_drip_unlockedEnable/disable drip unlock notifications (default: yes)
email_membership_pausedEnable/disable the pause notification (default: yes)
email_membership_resumedEnable/disable the resume notification (default: yes)
email_trial_convertedEnable/disable the trial conversion email (default: yes)
email_trial_expiringEnable/disable the trial expiring email (default: yes)

Custom Templates

Each email type has a customizable template stored in the email_templates setting. Templates use the smart codes listed above and support full HTML. If no custom template is set, the plugin uses a default template.

From Address

Emails are sent from your WordPress admin email (get_option('admin_email')) with your site name as the sender name. Headers include Content-Type: text/html; charset=UTF-8.

Troubleshooting Emails

If emails are not being delivered:

  1. Check Action Scheduler — Go to Tools > Scheduled Actions and look for pending or failed fchub_memberships_send_email actions
  2. Check the setting — Make sure the specific email type is not disabled in settings
  3. Check wp_mail — Test basic WordPress email delivery with a plugin like WP Mail SMTP
  4. Check the logs — Failed email dispatches are logged via the Logger class

On this page