Forums

Specific user's e-mail with e.g. {user=xx:email} to the Recipients Admin e-mail

sylwekb 27 May, 2021
Hello
Is it possible to add a specific user's e-mail with id = xx to the Recipients Admin e-mail field with a short code? e.g. {user = xx: email}. The point is that you don't have to change in several places each time. This is useful when there are a lot of forms on the website and the staff cannot have access to everything. This is probably very important and useful for everyone and would make it a lot easier.
Joomla 3.9.27
GreyHead 27 May, 2021
Hi sylwebk,

I'm not sure that I understand your question :-(

You can use {user:email} to get the current user's email address. For another user you would need to look up the address using a Read Data action.

Bob
sylwekb 27 May, 2021
I have created users in Users Joomla with email addresses. Is it possible to insert a command into the recipients field, which will extract the email of a specific user? e.g. {user=11:email}
Is there any shortcode formula for this? It is an e-mail of the user with a specific id.

Do you understand what I mean now
GreyHead 28 May, 2021
Hi sylwekb,

I don't think that there is a short code to get data for a user apart from the current one. You can use a Read Data action to get it though.

Bob
sylwekb 28 May, 2021
What does the example read action command look like for a specific e-mail user? Do I put this in the recipients field?

healyhatman 31 May, 2021
Answer
Use a read data action, with the user id you're after.

Then {var:read_data_name.model_name.email}
You need to login to be able to post a reply.