Hi,
I just changed the code to :
if (!$headers) {
$eol=(isset($paramMailEol))?$paramMailEol:"rn";
$headers = 'MIME-Version: 1.0' . $eol;
$headers .= 'Content-type: text/html; charset=utf-8' . $eol;
$headers .= 'From: ' . (($sender)?$sender:$paramMailSender) . $eol;
$headers .= 'Reply-To: ' . (($sender)?$sender:$paramMailReplyTo) . $eol;
$headers .= 'Content-Transfer-Encoding: 8bit' . $eol;
$headers .= 'X-Mailer: PHP/' . phpversion();
}
This way, you'll just have to define
$paramMailEol="n";
in the parameters.php file, and your config will always be valid, even if you deply new version.
Will be deployed in V2.4.2.
Really good.
It seems not working.
What does
$eol=(isset($paramMailEol))?$paramMailEol:"rn";
means?
If $eol is not set, set $eol as "rn"?
Or maybe files/config/parameters.php needs to be included?
Do you mean files/config/parameters.php or tool/parameters.php ?
Do you mean files/config/parameters.php or tool/parameters.php ?
I mean parameter file defined in /tool/parametersLocation.php. By default it is /files/config/parameters.php, but it is advised to chnges its location (to put it out of web access).
Do you mean files/config/parameters.php or tool/parameters.php ?
I mean parameter file defined in /tool/parametersLocation.php. By default it is /files/config/parameters.php, but it is advised to changes its location (to put it out of web access).
I set $paramMailEol in files/config/parameters.php but it doen's work.
With V2.4.2 or V2.4.3 ?
2.3.0
Normal it does not work : implementation comes with V2.4.2... :whistle:
I modified also tool/projector.php as you typed. I thought it do the trick, isn't it?
Yes, it should.
Could you try to add a debug line :
if (!$headers) {
$eol=(isset($paramMailEol))?$paramMailEol:"rn";
debugLog("NewLine=".strlen($eol).":".nin2hex($eol));
$headers = 'MIME-Version: 1.0' . $eol;
$headers .= 'Content-type: text/html; charset=utf-8' . $eol;
$headers .= 'From: ' . (($sender)?$sender:$paramMailSender) . $eol;
$headers .= 'Reply-To: ' . (($sender)?$sender:$paramMailReplyTo) . $eol;
$headers .= 'Content-Transfer-Encoding: 8bit' . $eol;
$headers .= 'X-Mailer: PHP/' . phpversion();
}
Then try again a copy here the log file.
If I append debug line, page hung trying sending mail notification (ex when assigne a task) and if I modify tool/projector.php
$eol=(isset($paramMailEol))?$paramMailEol:"n";
it works.
Sorry there was a typo in the debug line :
debugLog("NewLine=".strlen($eol).":".bin2hex($eol));
I just found the issue, line 561 must be completed:
global $paramMailSender, $paramMailReplyTo, $paramMailSmtpServer, $paramMailSmtpPort, $paramMailSendmailPath, $paramMailEol;
You can remove the debug line !
Then it should work.
I include this fox in next version, so if you change it, you'll retrieve your parametering on next versions.
Yeah man, now it works 😉