Answer the question
In order to leave comments, you need to log in
Sending emails to all registered users, how?
Hello!
How to implement it better, can anyone do it, please share.
Implemented sending letters when creating an infoblock element, but how to implement sending letters to all registered users by e-mail?
Answer the question
In order to leave comments, you need to log in
In the required event in init.php:
1) Get users CUser::GetList
2) Get EMAIL in the array
3) In CEvent::Send, example
while ($admin = $rsAdmins->Fetch()) {
CEvent::Send('COUNT_REGISTERED_USERS', 's1', array(
'EMAIL_TO' => $admin['EMAIL'],
.....
);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question