General Introduction
Settings
Special constants
Special variables
Date and Time
Complex logic in filter
Email system
Add
Authorize
CanDoFileOperation
ChangePassword
Delete
GetAnonymousUserID
GetByID
GetByLogin
GetCount
GetEmail
GetExternalAuthList
GetFirstName
GetFullName
GetID
GetLastName
GetList
GetLogin
GetParam
GetPasswordHash
GetUserGroup
GetUserGroupArray
GetUserGroupList
GetUserGroupString
IsAdmin
IsAuthorized
IsOnLine
Login
LoginByHash
Logout
Register
SavePasswordHash
SendPassword
SendUserInfo
SetLastActivityDate
SetParam
SetUserGroup
SetUserGroupArray
SimpleRegister
Update
Features
SendUserInfo
CUser::SendUserInfo( int id, string site_id, string MSG, bool Immediate=false, string eventName="USER_INFO" )
The method sends an e-mail message with the user preferences using the template USER_INFO. Non-static method.
Parameters
Parameter | Description | Available from version |
---|---|---|
id | User ID. | |
site_id | Site ID for email template. Prior to version 3.3.21 it was called lang. | |
MSG | Custom message text (#MESSAGE#). | |
Immediate | By default value is false. If true is passed, the email will be send immediately, without a record in the database. | |
eventName | Parameter that passes the type of sent messages. |
See Also
Examples of use
<? $USER_ID = 1; // send message to a user with ID=1, // using current site template CUser::SendUserInfo($USER_ID, SITE_ID, "Hello! You have successfully registered at our website!"); ?>
© «Bitrix24», 2001-2023
Up