public function xsend() { /* |set appid and appkey |-------------------------------------------------------------------------- */ $mail_configs['appid'] = $this->appid; $mail_configs['appkey'] = $this->appkey; /* |set sign_type,if is set |-------------------------------------------------------------------------- */ if ($this->sign_type != '') { $mail_configs['sign_type'] = $this->sign_type; } /* |init mail class |-------------------------------------------------------------------------- */ $mail = new mail($mail_configs); /* |build request and send email and return the result |-------------------------------------------------------------------------- */ return $mail->xsend($this->buildRequest()); }
public function xsend() { $mail_configs['appid'] = $this->appid; $mail_configs['appkey'] = $this->appkey; if ($this->sign_type != '') { $mail_configs['sign_type'] = $this->sign_type; } $mail = new mail($mail_configs); return $mail->xsend($this->buildRequest()); }