5 include_once
'./Services/Language/classes/class.ilLanguageFactory.php';
6 include_once
'./Services/Mail/classes/class.ilMail.php';
56 $this->type = $a_type;
75 $this->sender = $a_usr_id;
94 return $this->subject = $a_subject;
113 $this->body = $a_body;
123 return $this->body .= $a_body;
142 $this->recipients = $a_rcp;
161 $this->language->loadLanguageModule(
'mail');
171 $this->language->loadLanguageModule(
'mail');
180 $this->language = $a_language;
199 return str_replace(
'\n',
"\n", $this->
getLanguage()->txt($a_keyword));
209 $this->ref_id = $a_id;
238 $this->obj_id = $a_obj_id;
257 $this->additional_info = $a_info;
302 public function sendMail($a_rcp,$a_type,$a_parse_recipients =
true)
305 foreach($a_rcp as $rcp)
307 if($a_parse_recipients)
317 $error = $this->
getMail()->sendMail(
329 $GLOBALS[
'ilLog']->write(__METHOD__.
': '.$error);
348 return is_object($this->mail) ? $this->mail : $this->
initMail();
357 include_once
'./classes/class.ilLink.php';
379 return ($name[
'title'] ? $name[
'title'].
' ' :
'').
380 ($name[
'firstname'] ? $name[
'firstname'].
' ' :
'').
381 ($name[
'lastname'] ? $name[
'lastname'].
' ' :
'');