‪TYPO3CMS  11.5
TYPO3\CMS\Form\Domain\Finishers\EmailFinisher Class Reference
Inheritance diagram for TYPO3\CMS\Form\Domain\Finishers\EmailFinisher:
TYPO3\CMS\Form\Domain\Finishers\AbstractFinisher TYPO3\CMS\Form\Domain\Finishers\FinisherInterface

Protected Member Functions

 executeInternal ()
 
StandaloneView initializeStandaloneView (FormRuntime $formRuntime, string $format)
 
 initializeFluidEmail (FormRuntime $formRuntime)
 
array getRecipients (string $listOption)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Form\Domain\Finishers\AbstractFinisher
string array null parseOption (string $optionName)
 
array string translateFinisherOption ( $subject, FormRuntime $formRuntime, string $optionName, $optionValue, array $translationOptions)
 
mixed substituteRuntimeReferences ($needle, FormRuntime $formRuntime)
 
int string array resolveRuntimeReference (string $property, FormRuntime $formRuntime)
 
TypoScriptFrontendController getTypoScriptFrontendController ()
 

Protected Attributes

array $defaultOptions
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Form\Domain\Finishers\AbstractFinisher
TYPO3 CMS Extbase Object ObjectManagerInterface $objectManager
 
string $finisherIdentifier = ''
 
string $shortFinisherIdentifier = ''
 
array $options = array( )
 
array $defaultOptions = array( )
 
TYPO3 CMS Form Domain Finishers FinisherContext $finisherContext
 

Additional Inherited Members

- ‪Public Member Functions inherited from ‪TYPO3\CMS\Form\Domain\Finishers\AbstractFinisher
 injectObjectManager (ObjectManagerInterface $objectManager)
 
 __construct ()
 
 setFinisherIdentifier (string $finisherIdentifier)
 
string getFinisherIdentifier ()
 
 setOptions (array $options)
 
 setOption (string $optionName, $optionValue)
 
string null execute (FinisherContext $finisherContext)
 
bool isEnabled ()
 

Detailed Description

This finisher sends an email to one recipient

Options:

  • ‪templatePathAndFilename (mandatory for Mail): Template path and filename for the mail body
  • ‪templateName (mandatory for FluidEmail): Template name for the mail body
  • ‪templateRootPaths: root paths for the templates
  • ‪layoutRootPaths: root paths for the layouts
  • ‪partialRootPaths: root paths for the partials
  • ‪variables: associative array of variables which are available inside the Fluid template

The following options control the mail sending. In all of them, placeholders in the form of {...} are replaced with the corresponding form value; i.e. {email} as senderAddress makes the recipient address configurable.

  • ‪subject (mandatory): Subject of the email
  • ‪recipients (mandatory): Email addresses and human-readable names of the recipients
  • ‪senderAddress (mandatory): Email address of the sender
  • ‪senderName: Human-readable name of the sender
  • ‪replyToRecipients: Email addresses and human-readable names of the reply-to recipients
  • ‪carbonCopyRecipients: Email addresses and human-readable names of the copy recipients
  • ‪blindCarbonCopyRecipients: Email addresses and human-readable names of the blind copy recipients

Scope: frontend

Definition at line 62 of file EmailFinisher.php.

Member Function Documentation

◆ executeInternal()

◆ getRecipients()

array TYPO3\CMS\Form\Domain\Finishers\EmailFinisher::getRecipients ( string  $listOption)
protected

Get mail recipients

Parameters
string$listOption‪List option name
Returns
‪array

Definition at line 332 of file EmailFinisher.php.

References TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger().

Referenced by TYPO3\CMS\Form\Domain\Finishers\EmailFinisher\executeInternal().

◆ initializeFluidEmail()

TYPO3\CMS\Form\Domain\Finishers\EmailFinisher::initializeFluidEmail ( FormRuntime  $formRuntime)
protected

Definition at line 261 of file EmailFinisher.php.

References $GLOBALS.

◆ initializeStandaloneView()

StandaloneView TYPO3\CMS\Form\Domain\Finishers\EmailFinisher::initializeStandaloneView ( FormRuntime  $formRuntime,
string  $format 
)
protected
Parameters
FormRuntime$formRuntime
string$format
Returns
‪StandaloneView
Exceptions
FinisherException
Deprecated:
‪since v11, will be removed in v12

Definition at line 203 of file EmailFinisher.php.

Referenced by TYPO3\CMS\Form\Domain\Finishers\EmailFinisher\executeInternal().

Member Data Documentation

◆ $defaultOptions

array TYPO3\CMS\Form\Domain\Finishers\EmailFinisher::$defaultOptions
protected
Initial value:
= array(
'recipientName' => '',
'senderName' => '',
'addHtmlPart' => true,
'attachUploads' => true,
)

Definition at line 66 of file EmailFinisher.php.