News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Creating new PM from a plugin

Started by derekjwhitten, August 24, 2016, 11:02:52 PM

Previous topic - Next topic

derekjwhitten

Hi everyone,

I'm creating a page which pulls together various data from my SMF board using the SSI.php file.

One function of the page is to allow users to create tickets which are reviewed by site moderators.  Moderators approve or reject the tickets, and I'm looking for a way to notify the user of the outcome.

I could get the user's email address from their SMF profile and send an email, but I'm hoping to be able to trigger a PM instead.  Is there a way to create a new PM via SSI or is there a function I can call to achieve this?

Arantor

Once SSI is loaded, load Sources/Subs-Post.php and call sendpm().

derekjwhitten

Great, thanks Arantor - that was exactly what I was looking for.

Advertisement: