Beispiel #1
0
 private function sendEmailSign(GWF_Guestbook $gb, GWF_GuestbookMSG $gbm)
 {
     $mail = new GWF_Mail();
     $mail->setSender(GWF_BOT_EMAIL);
     $owner = $gb->getUser();
     if ($owner === false || '' === ($rec = $owner->getValidMail())) {
         $rec = GWF_ADMIN_EMAIL;
         $cc = GWF_STAFF_EMAILS;
         $recname = 'Staff';
     } else {
         $cc = '';
         $recname = $owner->displayUsername();
     }
     $mail->setReceiver($rec);
     $mail->setSubject($this->module->langAdmin('mails2_signed'));
     $mail->setBody($this->module->langAdmin('mailb2_signed', array($recname, $gb->displayTitle(), $gbm->displayUsername(), $gbm->displayEMail(true), $gbm->display('gbm_message'))));
     if ($owner === false) {
         $mail->sendAsHTML($cc);
     } else {
         $mail->sendToUser($owner);
     }
 }