Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
TYPO3
sg_mail
Commits
bcb3d416
Commit
bcb3d416
authored
Aug 04, 2017
by
Torsten Oppermann
Browse files
[TASK] Dont send preview emails
parent
5234a654
Changes
1
Hide whitespace changes
Inline
Side-by-side
Classes/Service/MailTemplateService.php
View file @
bcb3d416
...
...
@@ -389,16 +389,21 @@ class MailTemplateService {
$this
->
mailMessage
->
send
();
$dateTime
=
new
DateTime
();
$currentTimestamp
=
$dateTime
->
getTimestamp
();
$this
->
addMailToMailQueue
(
$this
->
extensionKey
,
$this
->
templateName
,
$subject
,
$emailBody
,
$this
->
priority
,
$currentTimestamp
,
TRUE
,
$currentTimestamp
,
$this
->
language
,
$siteRootId
);
if
(
!
$isPreview
)
{
$this
->
addMailToMailQueue
(
$this
->
extensionKey
,
$this
->
templateName
,
$subject
,
$emailBody
,
$this
->
priority
,
$currentTimestamp
,
TRUE
,
$currentTimestamp
,
$this
->
language
,
$siteRootId
);
}
}
else
{
$this
->
addMailToMailQueue
(
$this
->
extensionKey
,
$this
->
templateName
,
$subject
,
$emailBody
,
$this
->
priority
,
0
,
FALSE
,
0
,
$this
->
language
,
$siteRootId
);
if
(
!
$isPreview
)
{
$this
->
addMailToMailQueue
(
$this
->
extensionKey
,
$this
->
templateName
,
$subject
,
$emailBody
,
$this
->
priority
,
0
,
FALSE
,
0
,
$this
->
language
,
$siteRootId
);
}
}
return
TRUE
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment