Please upgrade php-mail to version 1.1.14

Bug #306011 reported by AlainKnaff
2
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://be.archive.ubuntu.com hardy/universe Packages
        100 /var/lib/dpkg/status
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('Mail.php');

// 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("smtp", $smtp);
$headers = array("From" => "<email address hidden>", "Subject" => "Test Mail");
$body="This is a test!";
for($i=0; $i < 17000; $i++) {
  $body .= "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
 }
$ret=$mail->send("<email address hidden>", $headers, $body);

if(PEAR::isError($ret)) {
  echo($ret->getMessage());
 } 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

Revision history for this message
Thijs Kinkhorst (kink) wrote :

1.1.14 present since Intrepid

Changed in php-mail:
status: New → Fix Released
Revision history for this message
AlainKnaff (kubuntu-misc) wrote :

Would it be possible to have it in a production version as well? (hardy updates)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.