Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
TYPO3
sg_mail
Commits
35b38b3f
Commit
35b38b3f
authored
Apr 28, 2021
by
Kevin Ditscheid
Browse files
[BUGFIX] Actually send the mail if mailqueue was ignored
parent
79fede81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Classes/Service/MailTemplateService.php
Classes/Service/MailTemplateService.php
+2
-2
No files found.
Classes/Service/MailTemplateService.php
View file @
35b38b3f
...
...
@@ -406,7 +406,7 @@ class MailTemplateService implements SingletonInterface {
$mail
=
$this
->
addMailToMailQueue
();
self
::
$mailObjectCache
[
$mail
->
getUid
()]
=
$mail
;
// add it to cache to avoid extra DB queries
if
(
$this
->
ignoreMailQueue
)
{
//
return $this->sendMailFromQueue($mail->getUid());
return
$this
->
sendMailFromQueue
(
$mail
->
getUid
());
}
return
TRUE
;
...
...
@@ -778,7 +778,7 @@ class MailTemplateService implements SingletonInterface {
* @throws IllegalObjectTypeException
* @throws NoSuchCacheException
*/
p
rivate
function
addMailToMailQueue
():
Mail
{
p
ublic
function
addMailToMailQueue
():
Mail
{
$mail
=
GeneralUtility
::
makeInstance
(
Mail
::
class
);
$mail
->
setPid
(
$this
->
pid
);
$mail
->
setExtensionKey
(
$this
->
extensionKey
);
...
...
Write
Preview
Markdown
is supported
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