/** * Wysyla pakiet e-mail * * @throws SoapFault * @return mixed */ protected function _sendPackage() { if (empty($this->_packageAddresses)) { throw new Exception('Nie ustawiono listy odbiorcow', 3); } $this->_response = $this->_client->package($clientHash = $this->_config['clientHash'], $serviceHash = $this->_config['serviceHash'], $priority = $this->_priority, $recipients = $this->_packageAddresses, $subject = $this->_subject, $content = $this->_content, $attachments = $this->_attachments, $charCode = $this->_charCode, $isHtml = $this->_isHtml, $replyto = $this->_replyto); }
/** * Wysyla pakiet SMS * * @throws SoapFault * @return mixed */ protected function _sendPackage() { if (empty($this->_packageNumbers)) { throw new Exception('Nie ustawiono listy odbiorcow', 3); } $this->_response = $this->_client->package( $clientHash = $this->_config['clientHash'], $serviceHash = $this->_config['serviceHash'], $content = $this->_content, $numbers = $this->_packageNumbers, $startDate = $this->_packageStartDate ); }