TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Frontend\Controller\DataSubmissionController Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Controller\DataSubmissionController:
t3lib_formmail

Public Member Functions

 start ($valueList, $base64=FALSE)
 
 __destruct ()
 

Protected Member Functions

 sanitizeHeaderString ($string)
 

Protected Attributes

 $reserved_names = 'recipient,recipient_copy,auto_respond_msg,auto_respond_checksum,redirect,subject,attachment,from_email,from_name,replyto_email,replyto_name,organisation,priority,html_enabled,quoted_printable,submit_x,submit_y'
 
 $dirtyHeaders = array()
 
 $characterSet
 
 $subject
 
 $fromName
 
 $replyToName
 
 $organisation
 
 $fromAddress
 
 $replyToAddress
 
 $priority
 
 $autoRespondMessage
 
 $encoding = 'quoted-printable'
 
 $mailMessage
 
 $recipient
 
 $plainContent = ''
 
 $temporaryFiles = array()
 

Detailed Description

Formmail class

Author
Kasper Skårhøj kaspe.nosp@m.rYYY.nosp@m.Y@typ.nosp@m.o3.c.nosp@m.om

Definition at line 24 of file DataSubmissionController.php.

Constructor & Destructor Documentation

◆ __destruct()

TYPO3\CMS\Frontend\Controller\DataSubmissionController::__destruct ( )

Do some cleanup at the end (deleting attachment files)

Definition at line 289 of file DataSubmissionController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\isAllowedAbsPath(), and TYPO3\CMS\Core\Utility\GeneralUtility\isFirstPartOfStr().

Member Function Documentation

◆ sanitizeHeaderString()

TYPO3\CMS\Frontend\Controller\DataSubmissionController::sanitizeHeaderString (   $string)
protected

Checks string for suspicious characters

Parameters
string$stringString to check
Returns
string Valid or empty string

Definition at line 221 of file DataSubmissionController.php.

Referenced by TYPO3\CMS\Frontend\Controller\DataSubmissionController\start().

◆ start()

TYPO3\CMS\Frontend\Controller\DataSubmissionController::start (   $valueList,
  $base64 = FALSE 
)

Start function This class is able to generate a mail in formmail-style from the data in $V Fields:

[recipient]: email-adress of the one to receive the mail. If array, then all values are expected to be recipients

[subject]: The subject of the mail [from_email]: Sender email. If not set, [email] is used [from_name]: Sender name. If not set, [name] is used [replyto_email]: Reply-to email. If not set [from_email] is used [replyto_name]: Reply-to name. If not set [from_name] is used

[priority]: Priority, 1-5, default 3 [html_enabled]: If mail is sent as html [use_base64]: If set, base64 encoding will be used instead of quoted-printable

Parameters
array$valueListContains values for the field names listed above (with slashes removed if from POST input)
boolean$base64Whether to base64 encode the mail content
Returns
void
Todo:
Define visibility

Definition at line 88 of file DataSubmissionController.php.

References TYPO3\CMS\Frontend\Controller\DataSubmissionController\$fromAddress, TYPO3\CMS\Frontend\Controller\DataSubmissionController\$fromName, $GLOBALS, TYPO3\CMS\Core\Utility\GeneralUtility\arrayToLogString(), TYPO3\CMS\Core\Utility\GeneralUtility\inList(), TYPO3\CMS\Frontend\Controller\DataSubmissionController\sanitizeHeaderString(), TYPO3\CMS\Core\Utility\GeneralUtility\SYSLOG_SEVERITY_ERROR, and TYPO3\CMS\Core\Utility\GeneralUtility\validEmail().

Member Data Documentation

◆ $autoRespondMessage

TYPO3\CMS\Frontend\Controller\DataSubmissionController::$autoRespondMessage
protected

Definition at line 47 of file DataSubmissionController.php.

◆ $characterSet

TYPO3\CMS\Frontend\Controller\DataSubmissionController::$characterSet
protected

Definition at line 31 of file DataSubmissionController.php.

◆ $dirtyHeaders

TYPO3\CMS\Frontend\Controller\DataSubmissionController::$dirtyHeaders = array()
protected

Definition at line 29 of file DataSubmissionController.php.

◆ $encoding

TYPO3\CMS\Frontend\Controller\DataSubmissionController::$encoding = 'quoted-printable'
protected

Definition at line 49 of file DataSubmissionController.php.

◆ $fromAddress

TYPO3\CMS\Frontend\Controller\DataSubmissionController::$fromAddress
protected

◆ $fromName

TYPO3\CMS\Frontend\Controller\DataSubmissionController::$fromName
protected

◆ $mailMessage

TYPO3\CMS\Frontend\Controller\DataSubmissionController::$mailMessage
protected

Definition at line 54 of file DataSubmissionController.php.

◆ $organisation

TYPO3\CMS\Frontend\Controller\DataSubmissionController::$organisation
protected

Definition at line 39 of file DataSubmissionController.php.

◆ $plainContent

TYPO3\CMS\Frontend\Controller\DataSubmissionController::$plainContent = ''
protected

Definition at line 58 of file DataSubmissionController.php.

◆ $priority

TYPO3\CMS\Frontend\Controller\DataSubmissionController::$priority
protected

Definition at line 45 of file DataSubmissionController.php.

◆ $recipient

TYPO3\CMS\Frontend\Controller\DataSubmissionController::$recipient
protected

Definition at line 56 of file DataSubmissionController.php.

◆ $replyToAddress

TYPO3\CMS\Frontend\Controller\DataSubmissionController::$replyToAddress
protected

Definition at line 43 of file DataSubmissionController.php.

◆ $replyToName

TYPO3\CMS\Frontend\Controller\DataSubmissionController::$replyToName
protected

Definition at line 37 of file DataSubmissionController.php.

◆ $reserved_names

TYPO3\CMS\Frontend\Controller\DataSubmissionController::$reserved_names = 'recipient,recipient_copy,auto_respond_msg,auto_respond_checksum,redirect,subject,attachment,from_email,from_name,replyto_email,replyto_name,organisation,priority,html_enabled,quoted_printable,submit_x,submit_y'
protected

Definition at line 26 of file DataSubmissionController.php.

◆ $subject

TYPO3\CMS\Frontend\Controller\DataSubmissionController::$subject
protected

Definition at line 33 of file DataSubmissionController.php.

◆ $temporaryFiles

TYPO3\CMS\Frontend\Controller\DataSubmissionController::$temporaryFiles = array()
protected

Definition at line 63 of file DataSubmissionController.php.