I
I
Igor Mamontov2014-04-22 18:00:49
1C-Bitrix
Igor Mamontov, 2014-04-22 18:00:49

How to create a mail event about the registration of a wholesale client in Bitrix CMS?

The site implements the registration of a regular user and a wholesale user. In order for a wholesale user to enter the site, confirmation from the site administrator is required.
How to create a separate email notification for a wholesale user in 1C Bitrix?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Misha Vasilyev, 2014-04-23
@vasilyev

I correctly understand that the letter should not come to ordinary users, but to wholesalers - should it? What for then separate event if it is possible to use normal event - confirmation of registration of the new user.
Or do you need to notify the administrator that the user has registered? Then use the OnAfterUserRegister event . In the handler that you hang on this event, use CEvent::Send or CEvent::SendImmediate to send a message to the administrator (you will need to create a mail event and a template for it). You can use any other method of sending mail. But CEvent::Send will leave a log entry.

I
Igor Mamontov, 2014-04-23
@goonwarez

There is a mail event, but it is common for the registration of both a regular user and a wholesale user, you need to add a second administrator notification only for the registration of a wholesale user

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question