Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
MaarchCourrier
Commits
12c69f93
Commit
12c69f93
authored
Dec 28, 2016
by
Henri Queneau
Browse files
FIX #5030 fix subject for notifications
parent
af7c808a
Changes
1
Hide whitespace changes
Inline
Side-by-side
maarch_entreprise/trunk/tools/mails/htmlMimeMail.php
View file @
12c69f93
...
...
@@ -794,7 +794,13 @@ class htmlMimeMail
if
(
$name
==
'Bcc'
)
{
continue
;
}
$headers
[]
=
$name
.
': '
.
$this
->
_encodeHeader
(
$value
,
$this
->
build_params
[
'head_charset'
]);
//ajout d'une condition pour subject, car _encodeHeader ne prend pas les caractères spéciaux avec php7 en revanche fonctionne très bien avec php5.6
if
(
$name
==
'Subject'
){
$headers
[]
=
$name
.
': '
.
$value
;
}
else
{
$headers
[]
=
$name
.
': '
.
$this
->
_encodeHeader
(
$value
,
$this
->
build_params
[
'head_charset'
]);
}
}
// Add To header based on $recipients argument
$headers
[]
=
'To: '
.
$this
->
_encodeHeader
(
implode
(
', '
,
$recipients
),
$this
->
build_params
[
'head_charset'
]);
...
...
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