The sendMessageTo API allows you to dynamically send message (one-way) to a particular user. This message will not appear in the senders chat box screen.
This function is ideally used in plugins to inform the user of an activity. The sender will not receive the same message.
include_once ('cometchat/cometchat_init.php'); sendMessageTo($toID,"Would you like to have a Pizza?");
This API is now deprecated in cometchat 5.4. This function should be replaced with sendMessage($to,$message,1);
Not finding what you need?
The CometChat team is here to help!