WordPress Email White-Labeling for Multi-Domain LMS

Challenge

A learning management platform operating across dozens of partner domains needed transactional emails to reflect each partner’s brand identity.

The existing system sent all emails with the primary domain’s branding, creating a disconnected experience for partner users who purchased courses through white-labeled sites.

Solution

84EM developed an automatic email white-labeling system that automatically transforms outgoing emails based on the partner domain associated with each user or order.

The solution integrates with both WooCommerce and Sensei LMS email systems, replacing URLs, colors, and branding elements without modifying email templates.

Partner configurations are stored in a custom post type and cached for performance.

Technical Implementation

  • Domain capture at checkout: Records the partner domain when users register, log in, or complete a purchase.
  • URL transformation: Replaces all base domain links with the partner domain across standard, escaped, and encoded URL formats.
  • Color replacement: Swaps default WooCommerce and Sensei LMS colors with the partner’s primary brand color.
  • Sender name customization: Updates the email “From” field to display the partner organization name.
  • Subject line branding: Replaces references to the site name with the appropriate partner name in email subjects.
  • Subscription support: Maintains partner branding through subscription renewals by inheriting the domain from the parent subscription.
  • Self-healing domain capture: Updates stored domain preferences when existing users log in from a partner site.

Results

Partner users now receive fully branded email communications throughout their learning journey.

Order confirmations, course enrollment notices, and subscription reminders all display the correct partner domain and branding.

The platform can onboard new partners by configuring a single custom post without any code changes or template modifications.