user_email_preview
3 sites
No security coverage
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
- Navigate to Configuration > People > Account settings (
/admin/config/people/accounts) - Scroll down to the Emails section
- Expand any email template (e.g., "Welcome (new user created by administrator)")
- 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
- Make changes to your email subject or body in the Template tab
- Click the Preview tab to see your changes rendered
- 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
- Switch back to Template to make more changes
- Click Save configuration when you're satisfied with your email
This module was built with AI assistance