2 namespace TYPO3\CMS\Core\Mail;
78 $mboxDate = strftime(
'%c', $message->
getDate());
79 $messageStr = sprintf(
'From %s %s', $mboxFrom, $mboxDate) . LF;
82 $messageStr .= LF . LF;
84 $lockObject = $lockFactory->createLocker(
'mbox');
85 $lockObject->acquire();
87 $file = @fopen($this->debugFile,
'a');
89 $lockObject->release();
90 throw new \RuntimeException(sprintf(
'Could not write to file "%s" when sending an email to debug transport', $this->debugFile), 1291064151);
92 @fwrite($file, $messageStr);
95 $lockObject->release();
97 $count = count((array)$message->
getTo()) + count((array)$message->
getCc()) + count((array)$message->
getBcc());
113 if (!empty($return)) {
115 }
elseif (!empty($sender)) {
116 $keys = array_keys($sender);
117 $path = array_shift($keys);
118 }
elseif (!empty($from)) {
119 $keys = array_keys($from);
120 $path = array_shift($keys);