mail_to = $to; return $this; } /** * @param string $subtype * @return $this */ public function subtype(string $subtype) { $this->subtype = $subtype; return $this; } /** * @return Curl */ public function send() { $param = [ 'mail_from' => $this->mail_from, 'password' => $this->password, 'mail_to' => $this->mail_to, 'subject' => $this->Subject, 'content' => $this->Body, 'subtype' => $this->subtype, ]; return Curl::app($this->host, "POST", $param)->run(); } }