Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISPConfig
ISPConfig 3
Commits
320fa675
Commit
320fa675
authored
Nov 05, 2020
by
Jesse Norell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix quota notification mail
parent
aee0071e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
server/lib/classes/monitor_tools.inc.php
server/lib/classes/monitor_tools.inc.php
+12
-1
No files found.
server/lib/classes/monitor_tools.inc.php
View file @
320fa675
...
...
@@ -829,6 +829,7 @@ class monitor_tools {
//* get mail headers, subject and body
$mailHeaders
=
''
;
$mailFrom
=
''
;
$mailBody
=
''
;
$mailSubject
=
''
;
$inHeader
=
true
;
...
...
@@ -844,6 +845,16 @@ class monitor_tools {
$mailSubject
=
trim
(
$parts
[
1
]);
continue
;
}
if
(
strtolower
(
$parts
[
0
])
==
'From'
)
{
$mailFrom
=
trim
(
$parts
[
1
]);
continue
;
}
if
(
strtolower
(
$parts
[
0
])
==
'Cc'
)
{
if
(
!
in_array
(
trim
(
$parts
[
1
]),
$recipients
))
{
$recipients
[]
=
trim
(
$parts
[
1
]);
}
continue
;
}
unset
(
$parts
);
$mailHeaders
.
=
trim
(
$lines
[
$l
])
.
"
\n
"
;
}
else
{
...
...
@@ -858,7 +869,7 @@ class monitor_tools {
$mailBody
=
strtr
(
$mailBody
,
$placeholders
);
for
(
$r
=
0
;
$r
<
count
(
$recipients
);
$r
++
)
{
$app
->
functions
->
mail
(
$recipients
[
$r
],
$mailSubject
,
$mailBody
,
$mail
Headers
);
$app
->
functions
->
mail
(
$recipients
[
$r
],
$mailSubject
,
$mailBody
,
$mail
From
);
}
unset
(
$mailSubject
);
...
...
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