‪TYPO3CMS  ‪main
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 ()
 
 initializeFluidEmail (FormRuntime $formRuntime)
 
 getRecipients (string $listOption)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Form\Domain\Finishers\AbstractFinisher
string array int 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)
 
 getTypoScriptFrontendController ()
 

Protected Attributes

array $defaultOptions
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Form\Domain\Finishers\AbstractFinisher
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
 setFinisherIdentifier (string $finisherIdentifier)
 
 getFinisherIdentifier ()
 
 setOptions (array $options)
 
 setOption (string $optionName, $optionValue)
 
string null execute (FinisherContext $finisherContext)
 
 isEnabled ()
 

Detailed Description

This finisher sends an email to one recipient

Options:

  • ‪templateName (mandatory): 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
  • ‪title: The title of the email - If not set "subject" is used by default

Scope: frontend

Definition at line 59 of file EmailFinisher.php.

Member Function Documentation

◆ executeInternal()

TYPO3\CMS\Form\Domain\Finishers\EmailFinisher::executeInternal ( )
protected

◆ getRecipients()

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

◆ initializeFluidEmail()

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

Definition at line 162 of file EmailFinisher.php.

References $GLOBALS.

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 63 of file EmailFinisher.php.