The problem is that with some web apps using the PHP mail function, the mails are returned to the server with this error :
I use 2 of those apps : Oscommerce 2.2MS2 and Gallery 1.5.1 RC1.451 See smtplf.html.">http://pobox.com/~djb/docs/smtplf.html
After hours of search in their forum, I found a solution for OScommerce. in the page general.php replace :
Code: Select all
function tep_convert_linefeeds($from, $to, $string) {
if ((PHP_VERSION < "4.0.5") && is_array($from)) {
return ereg_replace('(' . implode('|', $from) . ')', $to, $string);
} else {
return str_replace($from, $to, $string);
}
}
Code: Select all
function tep_convert_linefeeds($from, $to, $string) {
// if ((PHP_VERSION < "4.0.5") && is_array($from)) {
return ereg_replace('(' . implode('|', $from) . ')', $to, $string);
// } else {
// return str_replace($from, $to, $string);
// }
}
But I haven't found a solution for Gallery and I'm sure this problem happens with other web apps.
My question is :
1st) can somebody explain what this LF storie is exactly ? what LF and CRLF means ? where are those famous /n/r and why, in OScommerce, whatever we choose LF or CRLF, it doesn't work anyway (except if you made the change I wrote).
2bd) Is it possible to create a script (now that Martin has enabled this since HMS v4) that would do that :
If sender is adress@site.com (the mail adress you entered in apache conf)
check mail and correct the LF stuff
send mail.
Else do nothing.
Thank You