‪TYPO3CMS  10.4
TYPO3\CMS\Core\Mail\MboxTransport Class Reference
Inheritance diagram for TYPO3\CMS\Core\Mail\MboxTransport:

Public Member Functions

 __construct (string $mboxFile, EventDispatcherInterface $dispatcher=null, LoggerInterface $logger=null)
 
 __toString ()
 

Protected Member Functions

 doSend (SentMessage $message)
 

Protected Attributes

LoggerInterface $logger
 

Private Attributes

string $mboxFile
 

Detailed Description

Additional Mbox Transport option

Definition at line 28 of file MboxTransport.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Mail\MboxTransport::__construct ( string  $mboxFile,
EventDispatcherInterface  $dispatcher = null,
LoggerInterface  $logger = null 
)

Create a new MailTransport

Parameters
string$mboxFile
EventDispatcherInterface$dispatcher
LoggerInterface$logger

Definition at line 47 of file MboxTransport.php.

References TYPO3\CMS\Core\Mail\MboxTransport\$logger, and TYPO3\CMS\Core\Mail\MboxTransport\$mboxFile.

Member Function Documentation

◆ __toString()

TYPO3\CMS\Core\Mail\MboxTransport::__toString ( )

Definition at line 86 of file MboxTransport.php.

References TYPO3\CMS\Core\Mail\MboxTransport\$mboxFile.

◆ doSend()

TYPO3\CMS\Core\Mail\MboxTransport::doSend ( SentMessage  $message)
protected

Outputs the mail to a text file according to RFC 4155.

Parameters
SentMessage$message
Exceptions

Definition at line 68 of file MboxTransport.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\fixPermissions().

Member Data Documentation

◆ $logger

LoggerInterface TYPO3\CMS\Core\Mail\MboxTransport::$logger
protected

The logger instance.

Definition at line 38 of file MboxTransport.php.

Referenced by TYPO3\CMS\Core\Mail\MboxTransport\__construct().

◆ $mboxFile

string TYPO3\CMS\Core\Mail\MboxTransport::$mboxFile
private

The file to write our mails into

Definition at line 32 of file MboxTransport.php.

Referenced by TYPO3\CMS\Core\Mail\MboxTransport\__construct(), and TYPO3\CMS\Core\Mail\MboxTransport\__toString().