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
ab5bfc34
Commit
ab5bfc34
authored
Sep 08, 2018
by
Elias Villiger
Browse files
F6314 Add file mode M back into sendmail; rename html mode to 'mode'
parent
45f690b6
Pipeline
#847
passed with stage
in 1 minute and 40 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Documentation/Manual.rst
View file @
ab5bfc34
...
...
@@ -5609,7 +5609,7 @@ Format: ::
t:<TO:email[,email]>|f:<FROM:email>|s:<subject>|b:<body>
[|c:<CC:email[,email]]>[|B:<BCC:email[,email]]>[|r:<REPLY-TO:email>]
[|A:<flag autosubmit: on/off>][|g:<grId>][|x:<xId>][|y:<xId2>][|z:<xId3>][|h:<mail header>]
[|e:<subject encode: encode/decode/none>][E:<body encode: encode/decode/none>][|
M
:html]
[|e:<subject encode: encode/decode/none>][E:<body encode: encode/decode/none>][|
mode
:html]
[|C][d:<filename of the attachment>][|F:<file to attach>][|u:<url>][|p:<T3 uri>]
The following parameters can also be written as complete words for ease of use: ::
...
...
extension/qfq/qfq/Constants.php
View file @
ab5bfc34
...
...
@@ -1233,7 +1233,7 @@ const SENDMAIL_TOKEN_ATTACHMENT_FILE = 'F';
const
SENDMAIL_TOKEN_ATTACHMENT_FILE_DEPRECATED
=
'a'
;
// since 5.12.17
const
SENDMAIL_TOKEN_SUBJECT_HTML_ENTITY
=
'e'
;
const
SENDMAIL_TOKEN_BODY_HTML_ENTITY
=
'E'
;
const
SENDMAIL_TOKEN_BODY_MODE
=
'
M
'
;
const
SENDMAIL_TOKEN_BODY_MODE
=
'
mode
'
;
const
SENDMAIL_TOKEN_BODY_MODE_LONG
=
'mode'
;
const
SENDMAIL_TOKEN_BODY_MODE_HTML
=
'html'
;
...
...
extension/qfq/qfq/report/SendMail.php
View file @
ab5bfc34
...
...
@@ -316,14 +316,23 @@ class SendMail {
unset
(
$attach
[
$key
]);
break
;
case
SENDMAIL_TOKEN_DOWNLOAD_MODE
:
$downloadMode
=
substr
(
$element
,
2
);
unset
(
$attach
[
$key
]);
break
;
case
SENDMAIL_TOKEN_ATTACHMENT_FILE
:
$downloadMode
=
DOWNLOAD_MODE_FILE
;
if
(
$downloadMode
==
''
)
{
// Set only if not explicitly given.
$downloadMode
=
DOWNLOAD_MODE_FILE
;
}
break
;
case
SENDMAIL_TOKEN_ATTACHMENT_URL
:
case
SENDMAIL_TOKEN_ATTACHMENT_URL_PARAM
:
case
SENDMAIL_TOKEN_ATTACHMENT_PAGE
:
$downloadMode
=
DOWNLOAD_MODE_PDF
;
if
(
$downloadMode
==
''
)
{
// Set only if not explicitly given.
$downloadMode
=
DOWNLOAD_MODE_PDF
;
}
break
;
default
:
...
...
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