TYPO3
7.6
|
Static Public Member Functions | |
static | getSystemFrom () |
static | getSystemFromName () |
static | getSystemFromAddress () |
static | breakLinesForEmail ($str, $newlineChar=LF, $lineWidth=76) |
Class to handle mail specific functionality
Definition at line 20 of file MailUtility.php.
|
static |
Breaks up a single line of text for emails Words - longer than $lineWidth - will not be split into parts
string | $str | The string to break up |
string | $newlineChar | The string to implode the broken lines with (default/typically ) |
int | $lineWidth | The line width |
Definition at line 110 of file MailUtility.php.
|
static |
Gets a valid "from" for mail messages (email and name).
Ready to be passed to $mail->setFrom()
Definition at line 29 of file MailUtility.php.
References elseif.
|
static |
Creates a valid email address for the sender of mail messages.
Uses a fallback chain: $TYPO3_CONF_VARS['MAIL']['defaultMailFromAddress'] -> no-reply -> no-reply('n') -> no-re ply@ examp le.c om
Ready to be passed to $mail->setFrom()
Definition at line 71 of file MailUtility.php.
References $GLOBALS, GeneralUtility\isFirstPartOfStr(), and GeneralUtility\validEmail().
Referenced by MailPostProcessor\setFrom().
|
static |
Creates a valid "from" name for mail messages.
As configured in Install Tool.
Definition at line 49 of file MailUtility.php.
References $GLOBALS.