๐Ÿ“ง

Email Notifications

Automated email system for memberships with welcome emails, expiration alerts, and quota warnings

Email Notifications addon automates your membership communication by sending smart, timely emails to your customers. Welcome new members, remind them about expiring memberships, and alert them when their download quota is running low โ€“ all automatically!

What It Does

๐Ÿ‘‹

Welcome Emails

Automatically sent when a customer completes a membership purchase.

โฐ

Expiration Alerts

Remind customers before their membership expires (e.g., 7, 3, 1 days before).

๐Ÿ“Š

Quota Warnings

Alert customers when they've used 80%+ of their download quota.

โœ๏ธ

Fully Customizable

Edit email subjects, messages, thresholds, and timing from admin panel.

๐Ÿ”ง

Smart Variables

Use dynamic variables like {customer_name}, {product_name}, {expiry_date}.

๐Ÿšซ

No Duplicates

Each email is sent only once per customer per membership.

Three Types of Automated Emails

1. ๐Ÿ‘‹ Welcome Email

When it's sent: Immediately after a customer completes their membership purchase (WooCommerce order status: completed).

What it includes:

Subject: Welcome to your membership! Hi {customer_name}, Thank you for purchasing {product_name}! Your membership is now active. Order: #{order_id} Expires: {expiry_date} Downloads: {quota} Start exploring now!

2. โฐ Expiration Alerts

When it's sent: X days before membership expires (configurable: default is 7, 3, and 1 day before).

What it includes:

Subject: Your membership expires in {days_left} days Hi {customer_name}, Your {product_name} membership expires soon! Days remaining: {days_left} Expiration date: {expiry_date} Order: #{order_id} Renew now to keep access!
โš ๏ธ Multiple Alerts

If you configure "7,3,1" days, the customer will receive 3 separate emails: one at 7 days before, one at 3 days before, and one at 1 day before expiration.

3. ๐Ÿ“Š Quota Alerts

When it's sent: When customer reaches X% of their download quota (default: 80%).

What it includes:

Subject: Your download quota is running low Hi {customer_name}, You've used {quota_percent}% of your downloads! Used: {quota_used} / {quota_total} Remaining: {quota_remaining} Order: #{order_id} Plan your downloads accordingly.
โœ… Sent Once

Each customer receives this alert only ONCE per membership, even if they stay above the threshold.

Dynamic Variables

Use these variables in your email subjects and messages. They'll be automatically replaced with actual data:

Variable Description Available In
{customer_name} Customer's full name All emails
{product_name} Membership product name All emails
{order_id} WooCommerce order number All emails
{expiry_date} Membership expiration date Welcome, Expiration
{days_left} Days remaining until expiration Expiration
{quota} Total download quota Welcome, Quota
{quota_used} Downloads already used Quota
{quota_total} Total downloads available Quota
{quota_remaining} Downloads still available Quota
{quota_percent} Percentage of quota used Quota
๐Ÿ“ Note

Do NOT translate these variables! They must stay exactly as shown (including the curly braces {}) to work properly.

Installation & Setup

How It Works (Technical)

๐Ÿ“ง Welcome Emails

Triggered by the woocommerce_order_status_completed hook. Sent immediately when an order is marked as completed.

โฐ Expiration & Quota Alerts

Run via WordPress Cron (daily automatic check):

Hook: dbp_email_notifications_daily_check Frequency: Once per day (automatically) Next check: Displayed in admin panel

๐Ÿงช Manual Testing

Don't want to wait 24 hours to test? Use the "Run Manual Check Now" button in the admin panel!

โœ… Test Results

After running a manual check, you'll see: "X email(s) sent" or "No emails to send" plus "Next automatic check: In X hours"

Anti-Duplicate System

Each email is logged to prevent sending duplicates. For example:

๐Ÿ”’ How It's Tracked

The addon stores a unique key for each email sent (e.g., "order_123_product_456_welcome"). This ensures emails are never duplicated.

Customization Options

Setting Options
Welcome Email Enable/Disable, Custom Subject, Custom Message
Expiration Days Comma-separated (e.g., "7,3,1" or "14,7,3,1")
Quota Threshold Percentage (e.g., 80, 90, 75)
Email Format Plain text (HTML support coming soon)

Translation Ready

All interface text and default email messages can be translated using:

Text Domain: dbp-addon-email-notifications

Perfect For

๐ŸŽ“

Online Courses

Remind students before access expires, alert when running low on course downloads.

๐Ÿ’ป

Software Licenses

Welcome new users, warn before license expiration, encourage renewals.

๐ŸŽจ

Digital Assets

Alert designers when download quota is low, remind about membership renewal.

๐Ÿ“š

Content Libraries

Keep subscribers engaged with timely reminders and usage alerts.

โœ… Set It and Forget It!

Once configured, Email Notifications runs completely automatically. Your customers stay informed, and you save hours of manual communication!