4 include_once
'Services/Mail/classes/class.ilMimeMail.php';
5 include_once
'Services/Mail/classes/class.ilMailNotification.php';
30 $this->mime_mail->To($a_rcp);
31 $this->mime_mail->Subject($this->
getSubject(),
true);
32 $this->mime_mail->Body($this->
getBody());
33 $this->mime_mail->Send();
39 protected function initMimeMail()
42 $senderFactory =
$GLOBALS[
"DIC"][
"mail.mime.sender.factory"];
45 $this->mime_mail->From($senderFactory->system());
55 parent::initLanguageByIso2Code($a_code);
56 $this->
getLanguage()->loadLanguageModule(
'registration');
64 parent::initLanguage($a_usr_id);
65 $this->
getLanguage()->loadLanguageModule(
'registration');
72 protected function handleCurrentRecipient($rcp)
74 require_once
'Services/Mail/exceptions/class.ilMailException.php';
76 if (is_numeric($rcp)) {
static is_email($a_email, ilMailRfc822AddressParserFactory $mailAddressParserFactory=null)
This preg-based function checks whether an e-mail address is formally valid.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
initLanguageByIso2Code($a_code='')
Base class for course/group mail notifications.
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
Base class for mime mail notifications.
setCurrentRecipient($current_recipient)