![]() |
TYPO3
7.6
|
Public Member Functions | |
injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManager $objectManager) | |
injectSessionUtility (\TYPO3\CMS\Form\Utility\SessionUtility $sessionUtility) | |
__construct (\TYPO3\CMS\Form\Domain\Model\Element $form, array $typoScript) | |
process () | |
![]() | |
setControllerContext (\TYPO3\CMS\Form\Mvc\Controller\ControllerContext $controllerContext) | |
![]() | |
setControllerContext (\TYPO3\CMS\Form\Mvc\Controller\ControllerContext $controllerContext) | |
Public Attributes | |
const | LOCALISATION_OBJECT_NAME = 'tx_form_view_mail' |
Protected Member Functions | |
setSubject () | |
setFrom () | |
setTo () | |
setCc () | |
setReplyTo () | |
setPriority () | |
setOrganization () | |
setCharacterSet () | |
setHtmlContent () | |
setPlainContent () | |
send () | |
render () | |
sanitizeHeaderString ($string) | |
addAttachmentsFromSession () | |
setTemplatePaths () | |
renderMessage ($messageType) | |
getLocalLanguageLabel ($type= '') | |
getTypoScriptValueFromIncomingData ($propertyName) | |
Protected Attributes | |
$objectManager | |
$sessionUtility | |
$formUtility | |
$form | |
$typoScript | |
$mailMessage | |
$htmlMailTemplatePath = 'Html' | |
$plaintextMailTemplatePath = 'Plain' | |
$dirtyHeaders = array() | |
![]() | |
$controllerContext | |
The mail post processor
Definition at line 27 of file MailPostProcessor.php.
__construct | ( | \TYPO3\CMS\Form\Domain\Model\Element | $form, |
array | $typoScript | ||
) |
Constructor
\TYPO3\CMS\Form\Domain\Model\Element | $form | Form domain model |
array | $typoScript | Post processor TypoScript settings |
Implements PostProcessorInterface.
Definition at line 105 of file MailPostProcessor.php.
References MailPostProcessor\$form, MailPostProcessor\$typoScript, GeneralUtility\makeInstance(), and MailPostProcessor\setTemplatePaths().
|
protected |
Loop through all elements of the session and attach the file if its a uploaded file
Definition at line 435 of file MailPostProcessor.php.
References Swift_Attachment\fromPath(), and GeneralUtility\isAllowedAbsPath().
Referenced by MailPostProcessor\process().
|
protected |
Get the local language label(s) for the message In some cases this method will be override by rule class
string | $type | The type |
Definition at line 542 of file MailPostProcessor.php.
References LocalizationUtility\translate().
Referenced by MailPostProcessor\renderMessage().
|
protected |
Determines user submitted data from a field that has been defined as TypoScript property.
string | $propertyName |
Definition at line 556 of file MailPostProcessor.php.
Referenced by MailPostProcessor\setFrom(), MailPostProcessor\setReplyTo(), and MailPostProcessor\setSubject().
injectObjectManager | ( | \TYPO3\CMS\Extbase\Object\ObjectManager | $objectManager | ) |
\TYPO3\CMS\Extbase\Object\ObjectManager | $objectManager |
Definition at line 85 of file MailPostProcessor.php.
References MailPostProcessor\$objectManager.
injectSessionUtility | ( | \TYPO3\CMS\Form\Utility\SessionUtility | $sessionUtility | ) |
\TYPO3\CMS\Form\Utility\SessionUtility | $sessionUtility |
Definition at line 94 of file MailPostProcessor.php.
References MailPostProcessor\$sessionUtility.
process | ( | ) |
The main method called by the post processor
Configures the mail message
Implements PostProcessorInterface.
Definition at line 120 of file MailPostProcessor.php.
References MailPostProcessor\addAttachmentsFromSession(), MailPostProcessor\render(), MailPostProcessor\send(), MailPostProcessor\setCc(), MailPostProcessor\setFrom(), MailPostProcessor\setHtmlContent(), MailPostProcessor\setOrganization(), MailPostProcessor\setPlainContent(), MailPostProcessor\setPriority(), MailPostProcessor\setReplyTo(), MailPostProcessor\setSubject(), and MailPostProcessor\setTo().
|
protected |
Render the message after trying to send the mail
Definition at line 403 of file MailPostProcessor.php.
References MailPostProcessor\renderMessage().
Referenced by MailPostProcessor\process().
|
protected |
Render the processor message
string | $messageType |
Definition at line 526 of file MailPostProcessor.php.
References MailPostProcessor\getLocalLanguageLabel().
Referenced by MailPostProcessor\render().
|
protected |
Checks string for suspicious characters
string | $string | String to check |
Definition at line 419 of file MailPostProcessor.php.
Referenced by MailPostProcessor\setFrom(), MailPostProcessor\setOrganization(), and MailPostProcessor\setSubject().
|
protected |
Sends the mail. Sending the mail requires the recipient and message to be set.
Definition at line 391 of file MailPostProcessor.php.
Referenced by MailPostProcessor\process().
|
protected |
Adds the carbon copy receiver of the mail message when configured
Checks the address if it is a valid email address
Definition at line 259 of file MailPostProcessor.php.
Referenced by MailPostProcessor\process().
|
protected |
Set the default character set used
Respect formMailCharset if it was set, otherwise use metaCharset for mail if different from renderCharset
Definition at line 346 of file MailPostProcessor.php.
|
protected |
Sets the sender of the mail message
Mostly the sender is a combination of the name and the email address
Definition at line 168 of file MailPostProcessor.php.
References $GLOBALS, elseif, MailUtility\getSystemFromAddress(), MailPostProcessor\getTypoScriptValueFromIncomingData(), MailPostProcessor\sanitizeHeaderString(), and GeneralUtility\validEmail().
Referenced by MailPostProcessor\process().
|
protected |
Add the HTML content
Add a MimePart of the type text/html to the message.
Definition at line 366 of file MailPostProcessor.php.
Referenced by MailPostProcessor\process().
|
protected |
Add a text header to the mail header of the type Organization
Sanitizes the header string when necessary
Definition at line 324 of file MailPostProcessor.php.
References MailPostProcessor\sanitizeHeaderString().
Referenced by MailPostProcessor\process().
|
protected |
Add the plain content
Add a MimePart of the type text/plain to the message.
Definition at line 379 of file MailPostProcessor.php.
Referenced by MailPostProcessor\process().
|
protected |
Set the priority of the mail message
When not in settings, the value will be 3. If the priority is configured, but too big, it will be set to 5, which means very low.
Definition at line 302 of file MailPostProcessor.php.
References MathUtility\forceIntegerInRange().
Referenced by MailPostProcessor\process().
|
protected |
Adds the reply to header of the mail message when configured
Checks the address if it is a valid email address
Definition at line 278 of file MailPostProcessor.php.
References elseif, and MailPostProcessor\getTypoScriptValueFromIncomingData().
Referenced by MailPostProcessor\process().
|
protected |
Sets the subject of the mail message
If not configured, it will use a default setting
Definition at line 144 of file MailPostProcessor.php.
References elseif, GeneralUtility\getIndpEnv(), MailPostProcessor\getTypoScriptValueFromIncomingData(), and MailPostProcessor\sanitizeHeaderString().
Referenced by MailPostProcessor\process().
|
protected |
Set the html and plaintext templates
Definition at line 461 of file MailPostProcessor.php.
Referenced by MailPostProcessor\__construct().
|
protected |
Adds the receiver of the mail message when configured
Checks the address if it is a valid email address
Definition at line 240 of file MailPostProcessor.php.
Referenced by MailPostProcessor\process().
|
protected |
Definition at line 79 of file MailPostProcessor.php.
|
protected |
Definition at line 54 of file MailPostProcessor.php.
Referenced by MailPostProcessor\__construct().
|
protected |
Definition at line 49 of file MailPostProcessor.php.
|
protected |
Definition at line 69 of file MailPostProcessor.php.
|
protected |
Definition at line 64 of file MailPostProcessor.php.
|
protected |
Definition at line 39 of file MailPostProcessor.php.
Referenced by MailPostProcessor\injectObjectManager().
|
protected |
Definition at line 74 of file MailPostProcessor.php.
|
protected |
Definition at line 44 of file MailPostProcessor.php.
Referenced by MailPostProcessor\injectSessionUtility().
|
protected |
Definition at line 59 of file MailPostProcessor.php.
Referenced by MailPostProcessor\__construct().
const LOCALISATION_OBJECT_NAME = 'tx_form_view_mail' |
Definition at line 34 of file MailPostProcessor.php.