In my project there are two types of user.Using profile2 module i creates 2 profiles. 1) normal user 2) Lawyer
So i have to send promotion email to lawyer after registration. i created following rule.
1) Event - After saving a new profile
2) condition - user has roles
a]After selecting they ask for Data selector. i don't know what i select for my lawyer account
b]i select "lawyer" Roles
c]match roles - all)
3) Event In event i select send-email
a]email function $to - how i can put current user registration email
b] body is static
c] subject is static
I am really confuse. Can i create hook for send email to lawyer after registration.