Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Which function should I call to send private message?


r-a-y
Keymaster

@r-a-y

I can see potential problems with that $args variable you have setup.
Try setting up the arguments as an array.

$args = array( 'recipients' => $user_id, 'sender_id' => 11, 'subject' => $title, 'content' => $message );

If PMs are disabled, the code will not run. In fact, most likely you’ll get an undefined function error.

Skip to toolbar