1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Send Private Message through PHP Script

Discussion in 'XenForo Development Discussions' started by Cooper, Jul 1, 2011.

  1. Cooper

    Cooper Active Member

    In vB I was able to send PMs by using the PM API for example:

    function pm_api($fromuserid$fromusername$title$message$recipients)

    $pmdm =& datamanager_init('PM'$vbulletinERRTYPE_ARRAY);
    $pmdm->overridequota true;


    Is there a way to do this in Xenforo currently?
  2. ragtek

    ragtek Guest


    use the conversation datawriter

    or use my framework for this http://xenforo.com/community/threads/ragtek-add-ons-helper-framework.15163/
    it includes a datawriter helper class ( Ragtek_FW_DataWriter )
    with this method:
        public static function createConversation(array $sender, array $recipients$subject$message,
    $noInvites false$conversationClosed false$markReadForSender true)
    Cooper likes this.
  3. Cooper

    Cooper Active Member

    Great stuff Ragtek, thanks.

Share This Page