I guess I need to create an instance of a class, fill up the data and call send member function. right?
what should I store in thread id? I mean are there any special values for it or using a plain 0 or any negative number will do?
your thoughts on the subject?
“so that user can access it anytime as per his needs”
Not sure what you’re trying to do.
Can you clarify?
i want to use the messages as a place holder for some more info related to user. I want that the user can access his previous info from his inbox.. (just the contents is what i want to store)
its hard to explain but pretty simple. can you just help me on what value should I store in thread id so that it doesn’t conflict with anything?
I get it. I can just use `messages_new_message()`
If you’re simply looking at sending a message, then you’re right! messages_new_message() is the way to go.
If you’re looking to modify this private message over time, you can’t do it via a function because such a function doesn’t exist; you’d have to modify the content via the DB. I’m probably just reading into your use-case a little too much!