smtp = new Smtp($host, $port, $auth, $user, $pass); $this->smtp->debug = $this->debug; } /** * 发送 * @param string $to 收信地址 * @param integer $title 邮件标题 * @param boolean $content 邮件内容 * @param string $from 邮件发件人 * @param string $type 邮件类型(TXT or HTML) * @return boolean */ public function send($to, $title, $content, $from, $type='HTML'){ return $this->smtp->sendmail($to, $from, $this->smtp->user, $title, $content, strtoupper($type)); } }