Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
0af33392
Commit
0af33392
authored
Aug 27, 2018
by
Carsten Rose
Browse files
B6562: sendmail: redirect all mail - the sender is replaced too.
parent
9fd33232
Pipeline
#785
passed with stage
in 1 minute and 47 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
extension/qfq/qfq/report/SendMail.php
View file @
0af33392
...
...
@@ -69,6 +69,7 @@ class SendMail {
$addBody
.
=
'TO: '
.
$mailConfig
[
SENDMAIL_TOKEN_RECEIVER
]
.
PHP_EOL
;
$addBody
.
=
'CC: '
.
$mailConfig
[
SENDMAIL_TOKEN_RECEIVER_CC
]
.
PHP_EOL
;
$addBody
.
=
'BCC: '
.
$mailConfig
[
SENDMAIL_TOKEN_RECEIVER_BCC
]
.
PHP_EOL
;
$addBody
.
=
'SENDER: '
.
$mailConfig
[
SENDMAIL_TOKEN_SENDER
]
.
PHP_EOL
;
$addBody
.
=
PHP_EOL
.
"=========================================="
.
PHP_EOL
.
PHP_EOL
;
// Check if the given body is a HTML body.
...
...
@@ -81,6 +82,7 @@ class SendMail {
$mailConfig
[
SENDMAIL_TOKEN_RECEIVER
]
=
$redirectAllMail
;
$mailConfig
[
SENDMAIL_TOKEN_RECEIVER_CC
]
=
''
;
$mailConfig
[
SENDMAIL_TOKEN_RECEIVER_BCC
]
=
''
;
$mailConfig
[
SENDMAIL_TOKEN_SENDER
]
=
$redirectAllMail
;
}
$mailConfig
=
$this
->
setDefault
(
$mailConfig
);
...
...
@@ -123,6 +125,9 @@ class SendMail {
* @throws DownloadException
* @throws UserFormException
* @throws UserReportException
* @throws \PhpOffice\PhpSpreadsheet\Exception
* @throws \PhpOffice\PhpSpreadsheet\Reader\Exception
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
*/
private
function
sendEmail
(
array
$mailConfig
)
{
$args
=
array
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment