A
A
Alexey2018-06-17 17:33:55
1C-Bitrix
Alexey, 2018-06-17 17:33:55

How to send an email to all users?

There is an event in init.php, which, upon authorization, sends a message to the user that he has authorized, the task is such, when the user authorizes, the message should come to all users except the most authorized user, how can this be done?
I thought to select all users, GetList, where in the filter to indicate that the user should not be equal to the logged in user, and loop through the mail addresses, but they said the loop should not be used and the solution is on the surface. Tell me please?)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-06-18
@idruweb

you can cache all email addresses and exclude unnecessary ones at the time of sending

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question