I am sending to a lot of recipients at once. Its in a loop sending to 20 recipients at a time (user1;user2;etc)
Occasionally Ill get the following error when checking $pmdm->errors:
Quote:
XXXX has chosen not to receive private messages or may not be allowed to receive private messages. Therefore you may not send your message to him/her.
If you are trying to send this message to multiple recipients, remove XXXX from the recipient list and send the message again.
|
How does one check to see if someone is allowed to receive a PM before its sent so I can exclude them from the recipients?
I am using $botpermissions['adminpermissions'] = 2; to override if their mailbox is full, but don't want to send a PM to people who aren't allowed by way of permissions to receive them.
Can this be checked in the query I am using to select names from the user table? Or is there code that can be used to check to see if the user is able to receive PM's?
I appreciate any insight.
Thanks,
Steve