Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_mail
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
sg_mail
Commits
e5e486d0
Commit
e5e486d0
authored
6 years ago
by
Torsten Oppermann
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] Add setting to ignore the mail queue with the forms finisher
parent
4286da9e
No related branches found
Branches containing commit
Tags
5.3.1
Tags containing commit
1 merge request
!10
Feature improved usability
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Classes/Finisher/Forms/FormsFinisher.php
+3
-1
3 additions, 1 deletion
Classes/Finisher/Forms/FormsFinisher.php
Configuration/Yaml/Forms/FinisherSetupBE.yaml
+12
-0
12 additions, 0 deletions
Configuration/Yaml/Forms/FinisherSetupBE.yaml
with
15 additions
and
1 deletion
Classes/Finisher/Forms/FormsFinisher.php
+
3
−
1
View file @
e5e486d0
...
...
@@ -70,13 +70,15 @@ class FormsFinisher extends AbstractFinisher {
$templateName
=
$formDefinition
->
getIdentifier
();
}
$ignoreMailQueue
=
(
boolean
)
$this
->
parseOption
(
'ignoreMailQueue'
);
$objectManager
=
GeneralUtility
::
makeInstance
(
ObjectManager
::
class
);
/** @var \SGalinski\SgMail\Service\MailTemplateService $mailTemplateService */
$mailTemplateService
=
$objectManager
->
get
(
MailTemplateService
::
class
,
$templateName
,
$this
->
parseOption
(
'extension'
),
$markers
);
$mailTemplateService
->
setIgnoreMailQueue
(
FALSE
);
$mailTemplateService
->
setIgnoreMailQueue
(
$ignoreMailQueue
);
$mailTemplateService
->
setLanguage
(
$GLOBALS
[
'TSFE'
]
->
config
[
'config'
][
'language'
]);
$mailTemplateService
->
setSubject
(
$this
->
parseOption
(
'subject'
));
$mailTemplateService
->
setToAddresses
(
$this
->
parseOption
(
'mailTo'
));
...
...
This diff is collapsed.
Click to expand it.
Configuration/Yaml/Forms/FinisherSetupBE.yaml
+
12
−
0
View file @
e5e486d0
...
...
@@ -14,6 +14,7 @@ TYPO3:
extension
:
'
sg_mail'
template
:
'
'
automaticRegistration
:
'
'
ignoreMailQueue
:
true
mailTo
:
'
'
subject
:
'
'
userName
:
'
'
...
...
@@ -30,6 +31,7 @@ TYPO3:
extension
:
'
sg_mail'
template
:
'
'
automaticRegistration
:
'
'
ignoreMailQueue
:
true
mailTo
:
'
'
mailFrom
:
'
'
subject
:
'
'
...
...
@@ -75,6 +77,11 @@ TYPO3:
templateName
:
'
Inspector-CheckboxEditor'
label
:
'
Automatic
Registration
(If
selected,
you
can
find
your
template
in
the
"Mail
Template"
module
after
saving.
Look
for
the
extension
and
template
key
in
the
dropdown
in
the
upper
left
corner
of
the
template
editor.'
propertyPath
:
'
options.automaticRegistration'
127
:
identifier
:
'
ignoreMailQueue'
templateName
:
'
Inspector-CheckboxEditor'
label
:
'
If
selected,
the
mails
are
send
immediately,
otherwise
the
mails
are
added
to
the
Mail
Queue.
See
the
Readme
of
the
sg_mail
extension
for
more
Informations.'
propertyPath
:
'
options.ignoreMailQueue'
130
:
identifier
:
'
mailTo'
templateName
:
'
Inspector-TextEditor'
...
...
@@ -139,6 +146,11 @@ TYPO3:
templateName
:
'
Inspector-CheckboxEditor'
label
:
'
Automatic
Registration
(If
selected,
you
can
find
your
template
in
the
"Mail
Template"
module
after
saving.
Look
for
the
extension
and
template
key
in
the
dropdown
in
the
upper
left
corner
of
the
template
editor.'
propertyPath
:
'
options.automaticRegistration'
127
:
identifier
:
'
ignoreMailQueue'
templateName
:
'
Inspector-CheckboxEditor'
label
:
'
If
selected,
the
mails
are
send
immediately,
otherwise
the
mails
are
added
to
the
Mail
Queue.
See
the
Readme
of
the
sg_mail
extension
for
more
Informations.'
propertyPath
:
'
options.ignoreMailQueue'
130
:
identifier
:
'
mailTo'
templateName
:
'
Inspector-TextEditor'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment