I am receiving an error that the user has PMs disabled, when the user doesn't. Any ideas? I'm attempting to send a PM to the main administrator account.
Code:
$pmdm =& datamanager_init('PM', $vbulletin, ERRTYPE_ARRAY);
$pmdm->set_info('savecopy', 1);
$pmdm->set('fromuserid', $userid);
$pmdm->set('fromusername', $username);
$pmdm->set('title', 'this is a title');
$pmdm->set('message', 'this is a message');
$pmdm->set_recipients('xxclixxx', $permissions);
$pmdm->set('dateline', TIMENOW);
$pmdm->pre_save();
// process errors if there are any
$errors = $pmdm->errors;
($userid and $username are properly filled during the test. It works if I send to the test account, but not to the admin account.)