Please upgrade php-mail to version 1.1.14
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php-mail (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: php-mail
Php mail in Kubuntu is currently version 1.1.6
This version is years old, and has numerous bugs which are fixed in more recent versions, such a accurate error reporting.
1) # lsb_release -rd
Description: Ubuntu 8.04.1
Release: 8.04
2) # apt-cache policy php-mail
php-mail:
Installé : 1.1.6-2
Candidat : 1.1.6-2
Table de version :
*** 1.1.6-2 0
500 http://
100 /var/lib/
3) On sending mail using a mail server that rejects me for whatever reason, I expect to see the error message that the server sent me back (Relaying denied, or message too big, depending on what condition I set up on the server)
<?
include(
// Here we deliberately conect to a server and attempt third-party relay
// it should fail with "Relaying denied. Proper authentication required."
// but instead fails with "Invalid response code received from server"
$smtp = array("host" => '127.0.0.1', "port" => 25);
$mail = Mail::factory(
$headers = array("From" => "<email address hidden>", "Subject" => "Test Mail");
$body="This is a test!";
for($i=0; $i < 17000; $i++) {
$body .= "aaaaaaaaaaaaaa
}
$ret=$mail-
if(PEAR:
echo(
} else {
echo("<p>Message sent: </p>");
}
?>
4) I get a generic error message "Invalid response code received from server", but the actual message is lost.
This problem is fixed in 1.1.14, but still exists in 1.1.6-2 as shipped with Kubuntu 8.04.1
1.1.14 present since Intrepid