(e) Eric Posted July 24, 2010 Share Posted July 24, 2010 No. Developers can set isSystem to true and forcePm to true when sending the PM, and it overrides the restriction. IPB can still send a PM from one user to himself, but users cannot through the interface. I think I'm missing something because I tried what you advised and it still throws the CANT_SEND_TO_SELF exception. my code: #setup messenger lib require_once( IPSLib::getAppDir( 'members' ) . '/sources/classes/messaging/messengerFunctions.php' ); $this->messenger = new messengerFunctions( $this->registry ); #finally... send a message $this->messenger->sendNewPersonalTopic( $this->memberData['member_id'], $this->settings['eco_shopitems_pm_sender'], array(), $message_title, $message_body, array( 'origMsgID' => 0, 'fromMsgID' => 0, 'postKey' => md5(microtime()), 'trackMsg' => 0, 'addToSentFolder' => 0, 'hideCCUser' => 0, 'forcePm' => TRUE, 'isSystem' => TRUE, ) ); Link to comment Share on other sites More sharing options...
bfarber Posted July 26, 2010 Share Posted July 26, 2010 Post in the peer to peer forum if you need help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.