19 declare(strict_types=1);
    31         if (empty($this->mail_data)) {
    37         $currentUserLogin = $DIC->user()->getLogin();
    39         foreach (explode(
',', (
string) $this->mail_data[
'rcp_to']) as $to) {
    41             if ($to !== 
'' && $currentUserLogin !== $to) {
    46         foreach (explode(
',', (
string) $this->mail_data[
'rcp_cc']) as $cc) {
    48             if ($cc !== 
'' && $currentUserLogin !== $cc) {
    53         return $this->mail_data[
'rcp_cc'] = implode(
', ', $newCC);
    58         if (empty($this->mail_data)) {
    62         $user = 
new ilObjUser((
int) $this->mail_data[
'sender_id']);
    63         return $this->mail_data[
'rcp_to'] = $user->getLogin();
    71         $name_str = implode(
',', $a_names);
    74         if (
'cc' === $a_type) {
    76         } elseif (
'bc' === $a_type) {
    80         if (!isset($this->mail_data[
$key]) || !is_string($this->mail_data[$key])) {
    81             $this->mail_data[
$key] = 
'';
    83             $this->mail_data[
$key] = trim($this->mail_data[$key]);
    86         if ($this->mail_data[$key] !== 
'') {
    87             $this->mail_data[
$key] .= 
',';
    89         $this->mail_data[
$key] .= $name_str;
    96         return $message . (chr(13) . chr(10) . $this->mail_options->getSignature());
   101         return $this->mail_options->getSignature() .
   111         $bodylines = preg_split(
"/\r\n|\n|\r/", $message);
   112         foreach ($bodylines as $i => $iValue) {
   113             $bodylines[$i] = 
'> ' . $iValue;
   116         return implode(chr(10), $bodylines);
   121         return 'RE: ' . $subject;
   126         return '[FWD: ' . $subject . 
']';