Drupal is a registered trademark of Dries Buytaert

user_email_preview

3 sites No security coverage
View on drupal.org

A Drupal module that adds live preview functionality to user email templates on the Account Settings page. This allows
administrators to see exactly how user-related emails will look before saving changes.

The module does not work with email templates in other areas of Drupal (such as Webform emails, Commerce emails, or custom notification systems).

Key Features

  • Live Preview: See your email exactly as users will receive it
  • Token Replacement: Dynamic placeholders like [user:display-name] are replaced with real values
  • Email Header Display: Shows Subject, From, and To fields just like a real email
  • No Configuration Required: Simply install and enable the module

How to Use

  1. Navigate to Configuration > People > Account settings (/admin/config/people/accounts)
  2. Scroll down to the Emails section
  3. Expand any email template (e.g., "Welcome (new user created by administrator)")
  4. You will see two tabs above each email template:
    • Template: The default view where you edit your email content
    • Preview: Click this tab to see how the email will look

Using the Preview

  1. Make changes to your email subject or body in the Template tab
  2. Click the Preview tab to see your changes rendered
  3. The preview shows:
    • Subject: Your email subject line with tokens replaced
    • From: Your site name and email address
    • To: The recipient's email address (uses your account for the preview)
    • Body: The full email content with all tokens replaced
  4. Switch back to Template to make more changes
  5. Click Save configuration when you're satisfied with your email

This module was built with AI assistance

Activity

Total releases
1
First release
Dec 2025
Latest release
2 months ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
1.0.0 Stable Dec 5, 2025