Skip to content
GitLab
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
d9ea3973
Commit
d9ea3973
authored
Aug 18, 2017
by
Carsten Rose
Browse files
Sendmail.php: fix that created and modified will be written to MailLog
parent
fd68e46f
Changes
1
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/report/Sendmail.php
View file @
d9ea3973
...
...
@@ -60,7 +60,6 @@ class Sendmail {
$header
=
$this
->
buildHeader
(
$mailarr
);
if
(
!
(
mb_send_mail
(
$mailarr
[
SENDMAIL_IDX_RECEIVER
],
$mailarr
[
SENDMAIL_IDX_SUBJECT
],
$addBody
.
$mailarr
[
SENDMAIL_IDX_BODY
],
$header
,
"-f "
.
$mailarr
[
SENDMAIL_IDX_SENDER
])))
{
throw
new
UserFormException
(
"Error sendmail failed."
,
ERROR_SENDMAIL
);
}
...
...
@@ -120,7 +119,7 @@ class Sendmail {
$log
[
7
]
=
empty
(
$mailarr
[
SENDMAIL_IDX_SRC
])
?
0
:
$mailarr
[
SENDMAIL_IDX_SRC
];
$db
=
new
Database
();
$db
->
sql
(
'INSERT INTO MailLog (`receiver`, `sender`, `subject`, `body`, `header`, `grId`, `xId`, `src`) VALUES ( ?, ? ,?, ?, ? ,?, ?, ? )'
,
ROW_REGULAR
,
$log
);
$db
->
sql
(
'INSERT INTO MailLog (`receiver`, `sender`, `subject`, `body`, `header`, `grId`, `xId`, `src`
, `modified`, `created`
) VALUES ( ?, ? ,?, ?, ? ,?, ?, ?
, NOW(), NOW()
)'
,
ROW_REGULAR
,
$log
);
}
}
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