A Cozmoslabs Product
Documentation / Developer Knowledge Base / Email / Different Emails based on User Role

Different Emails based on User Role

For you to send personalized emails for each user role after user registration, you’ll have to first activate the Compare shortcode. This shortcode can be activated from Profile Builder → Settings → Advanced Settings → Shortcodes → Enable “Compare shortcode”.

That allows you to send different information based on user role.

Go to Profile Builder → Settings → Email Customizer → User Emails and modify the template you’re interested into something similar to:

<h3>Welcome to {{site_name}}!</h3>
<p>Your username is:{{username}}</p>
 
[compare val1="{{role}}" val2="subscriber" operator="=="]
<h3>As a subscriber, you have access to basic information only.</h3>
[/compare]
 
[compare val1="{{role}}" val2="contributor" operator="=="]
<h3>As a contributor, you have access to creating posts and other things.</h3>
[/compare]
 
Thank you for signing up with out site!

This works for both Admin and User email customizer.

Profile Builder Pro

Create beautiful front-end registration and profile forms with custom fields. Setup member directories, custom redirects, cutomize user emails & more using the all in one user management plugin.

Get Profile Builder

The Ultimate Membership Bundle

Combine the power of Profile Builder with Paid Member Subscriptions to set up user registration, memberships, and recurring revenue.

Get 25% off with the bundle

Help & Support

We’re here to help you every step of the way.

Open a Support Ticket