TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Core\Mail\MboxTransport Class Reference
Inheritance diagram for TYPO3\CMS\Core\Mail\MboxTransport:
TYPO3\CMS\Core\Tests\Unit\Mail\Fixtures\FakeTransportFixture

Public Member Functions

 __construct ($debugFile)
 
 isStarted ()
 
 start ()
 
 stop ()
 
 send (\Swift_Mime_Message $message, &$failedRecipients=null)
 
 registerPlugin (\Swift_Events_EventListener $plugin)
 

Private Member Functions

 getReversePath (\Swift_Mime_Message $message)
 

Private Attributes

 $debugFile
 

Detailed Description

Adapter for Swift_Mailer to be used by TYPO3 extensions.

This will use the setting in TYPO3_CONF_VARS to choose the correct transport for it to work out-of-the-box.

Definition at line 26 of file MboxTransport.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Mail\MboxTransport::__construct (   $debugFile)

Create a new MailTransport

Parameters
string$debugFile

Definition at line 38 of file MboxTransport.php.

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

Member Function Documentation

◆ getReversePath()

TYPO3\CMS\Core\Mail\MboxTransport::getReversePath ( \Swift_Mime_Message  $message)
private

Determine the best-use reverse path for this message

Parameters
\Swift_Mime_Message$message
Returns
mixed|NULL

Definition at line 107 of file MboxTransport.php.

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

◆ isStarted()

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

Not used.

Definition at line 46 of file MboxTransport.php.

◆ registerPlugin()

TYPO3\CMS\Core\Mail\MboxTransport::registerPlugin ( \Swift_Events_EventListener  $plugin)

Register a plugin in the Transport.

Parameters
\Swift_Events_EventListener$plugin
Returns
bool

Definition at line 131 of file MboxTransport.php.

◆ send()

TYPO3\CMS\Core\Mail\MboxTransport::send ( \Swift_Mime_Message  $message,
$failedRecipients = null 
)

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

Parameters
\Swift_Mime_Message$messageThe message to send
string[]&$failedRecipients To collect failures by-reference, nothing will fail in our debugging case
Returns
int
Exceptions

Definition at line 73 of file MboxTransport.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\fixPermissions(), TYPO3\CMS\Core\Mail\MboxTransport\getReversePath(), and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

◆ start()

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

Not used.

Definition at line 54 of file MboxTransport.php.

◆ stop()

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

Not used.

Definition at line 61 of file MboxTransport.php.

Member Data Documentation

◆ $debugFile

TYPO3\CMS\Core\Mail\MboxTransport::$debugFile
private

Definition at line 31 of file MboxTransport.php.

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