@@ -683,6 +683,59 @@ public function mail_transport_delete($session_id, $primary_id)
683683 return $ affected_rows ;
684684 }
685685
686+
687+ //* Get mail relay_recipient details
688+ public function mail_relay_recipient_get ($ session_id , $ primary_id )
689+ {
690+ global $ app ;
691+
692+ if (!$ this ->checkPerm ($ session_id , 'mail_relay_get ' )) {
693+ $ this ->server ->fault ('permission_denied ' , 'You do not have the permissions to access this function. ' );
694+ return false ;
695+ }
696+ $ app ->uses ('remoting_lib ' );
697+ $ app ->remoting_lib ->loadFormDef ('../mail/form/mail_relay_recipient.tform.php ' );
698+ return $ app ->remoting_lib ->getDataRecord ($ primary_id );
699+ }
700+
701+
702+ //* relay recipient email
703+ public function mail_relay_recipient_add ($ session_id , $ client_id , $ params )
704+ {
705+ if (!$ this ->checkPerm ($ session_id , 'mail_relay_add ' ))
706+ {
707+ $ this ->server ->fault ('permission_denied ' ,'You do not have the permissions to access this function. ' );
708+ return false ;
709+ }
710+ $ affected_rows = $ this ->insertQuery ('../mail/form/mail_relay_recipient.tform.php ' , $ client_id , $ params );
711+ return $ affected_rows ;
712+ }
713+
714+
715+ public function mail_relay_recipient_update ($ session_id , $ client_id , $ primary_id , $ params )
716+ {
717+ if (!$ this ->checkPerm ($ session_id , 'mail_relay_update ' ))
718+ {
719+ $ this ->server ->fault ('permission_denied ' ,'You do not have the permissions to access this function. ' );
720+ return false ;
721+ }
722+ $ affected_rows = $ this ->updateQuery ('../mail/form/mail_relay_recipient.tform.php ' , $ client_id , $ primary_id , $ params );
723+ return $ affected_rows ;
724+ }
725+
726+
727+ public function mail_relay_recipient_delete ($ session_id , $ primary_id )
728+ {
729+ if (!$ this ->checkPerm ($ session_id , 'mail_relay_delete ' ))
730+ {
731+ $ this ->server ->fault ('permission_denied ' ,'You do not have the permissions to access this function. ' );
732+ return false ;
733+ }
734+ $ affected_rows = $ this ->deleteQuery ('../mail/form/mail_relay_recipient.tform.php ' , $ primary_id );
735+ return $ affected_rows ;
736+ }
737+
738+
686739 //* Get spamfilter whitelist details
687740 public function mail_spamfilter_whitelist_get ($ session_id , $ primary_id )
688741 {
0 commit comments