예제 #1
0
 public function subscribe()
 {
     $message_configs['appid'] = $this->appid;
     $message_configs['appkey'] = $this->appkey;
     if ($this->sign_type != '') {
         $message_configs['sign_type'] = $this->sign_type;
     }
     $addressbook = new message($message_configs);
     return $addressbook->subscribe($this->buildRequest());
 }
예제 #2
0
 public function subscribe()
 {
     /*
     |set appid and appkey
     |--------------------------------------------------------------------------
     */
     $message_configs['appid'] = $this->appid;
     $message_configs['appkey'] = $this->appkey;
     /*
     |set sign_type,if is set
     |--------------------------------------------------------------------------
     */
     if ($this->sign_type != '') {
         $message_configs['sign_type'] = $this->sign_type;
     }
     /*
     |init mail class
     |--------------------------------------------------------------------------
     */
     $addressbook = new message($message_configs);
     /*
     |build request and send email and return the result
     |--------------------------------------------------------------------------
     */
     return $addressbook->subscribe($this->buildRequest());
 }