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 Usermeta 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:

1
2
3
4
5
6
7
8
9
10
11
12
<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.

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