Mail different users

Status
Not open for further replies.

vaughan

Member
Hi

How I can do when a user selected "A, B and C" submit a form, you get a mail to a user "D"?. And users "E, F and G" send mail to a user on "H", ie that each user group send mail to different mail account.
I have configured a form email plugin and just get all mails arriving at the same destination, regardless of the group they belong

Thanks for your help!
 
Go to Users > groups and get the ID of the group which your users have to belong to.

Say, this ID is "8" (the Super Admin group).

In the "condition" box of the fabrik email plugin in your form, write this:
Code:
$user = JFactory::getUser();
return ($user->groups[8] == 8);
Replace "8" by the ID of your group.
If you need to send email to different addresses for users belonging to different groups, add as many email plugins as needed and set the correct ID for each.
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top