Re: Use PM component to send data
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!