protected function sendemail($title, $mailbody) { $mail = new XMail(); return $mail->SendEmail($this->mailto, $title, $mailbody); }