Bitrix Site Manager

CUser::SendUserInfo

CUser::SendUserInfo(
 int user_id,
 string site_id,
 string message
)

The method SendUserInfo sends an e-mail message with the user preferences using the template USER_INFO.

Parameters

ParameterDescription
user_id User ID.
site_id he site ID whose e-mail template is to be used.
message Message text (#MESSAGE#).

See Also

Example



<?
$USER_ID = 1;
// send message to a user with ID=1, 
// using current site template
CUser::SendUserInfo($USER_ID, 
                    SITE_ID, 
                    "You have successfully registered!");
?>