messages_new_message Not Sending Out Messages
-
I’m using messages_new_message() to programmatically send out messages to select admin(s) when a user completes their profile (based on certain guidelines), or previous completed their profile and made an update.
array(7) { ["content"]=> string(0) "" ["date_sent"]=> string(19) "2023-10-23 17:39:13" ["error_type"]=> string(4) "bool" ["recipients"]=> array(1) { [0]=> int(26703) } ["sender_id"]=> string(5) "26553" ["subject"]=> string(4) "test" ["thread_id"]=> bool(false) } Success
To call this function, I’m using an Ajax call to trigger it & provide the necessary data. I have a var_dump() on the $message_args variable that’s passed to the messaging function, the output of which can be seen above. And the Success message is from messages_new_message().
The problem is that I’m not seeing the message show up on the site end, nor in the database. Messages are working in a general sense, as if I use the built-in functionality to send messages it works as intended, though.
Is there any further debugging flags that can be added when calling messages_new_message()? If not, where should I look in particular to see if something else (cron?) may be at fault?
- You must be logged in to reply to this topic.