This function is used to send short messages (including private messages, system messages, reminder messages, etc.)
The function is defined at:\source\function\function_core. PHP
Called helper_pm assistant, file: \source\class\helper\helper_pm.php sendpm($toid, $subject, $message, $fromid = '');
Parameter meaning:
There are four parameters, the first three are mandatory parameters, and the last one is optional;
The first parameter is the user UID of the person receiving the short message;
The second parameter is the title of the short message;
The third parameter is the body content of the short message;
The fourth parameter is the user UID of the person sending the short message;
Note: When the first parameter $toid is 0, the message type is public message, and when the $fromid is 0, the message type is system message, $message the parameter of this message content, HTML is not supported, but Discuz! code is supported.
|