5 include_once
'./Services/Language/classes/class.ilLanguageFactory.php';
6 include_once
'./Services/Mail/classes/class.ilMail.php';
58 $this->type = $a_type;
77 $this->sender = $a_usr_id;
96 return $this->subject = $a_subject;
115 $this->body = $a_body;
125 return $this->body .= $a_body;
144 $this->recipients = $a_rcp;
158 $this->attachments = $a_att;
173 $this->language->loadLanguageModule(
'mail');
183 $this->language->loadLanguageModule(
'mail');
192 $this->language = $a_language;
211 return str_replace(
'\n',
"\n", $this->
getLanguage()->txt($a_keyword));
221 $this->ref_id = $a_id;
250 $this->obj_id = $a_obj_id;
269 $this->additional_info = $a_info;
314 public function sendMail($a_rcp,$a_type,$a_parse_recipients =
true)
317 foreach($a_rcp as $rcp)
319 if($a_parse_recipients)
329 $error = $this->
getMail()->sendMail(
341 $GLOBALS[
'ilLog']->write(__METHOD__.
': '.$error);
360 return is_object($this->mail) ? $this->mail : $this->
initMail();
369 include_once
'./Services/Link/classes/class.ilLink.php';
391 return ($name[
'title'] ? $name[
'title'].
' ' :
'').
392 ($name[
'firstname'] ? $name[
'firstname'].
' ' :
'').
393 ($name[
'lastname'] ? $name[
'lastname'].
' ' :
'');