[Bug 306011] [NEW] Please upgrade php-mail to version 1.1.14
AlainKnaff
kubuntu at misc.lka.org.lu
Sun Dec 7 16:49:18 UTC 2008
Public bug reported:
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" => "alain at yahoo.com", "Subject" => "Test Mail");
$body="This is a test!";
for($i=0; $i < 17000; $i++) {
$body .= "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
}
$ret=$mail->send("alain at xyz.lu", $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
** Affects: php-mail (Ubuntu)
Importance: Undecided
Status: New
--
Please upgrade php-mail to version 1.1.14
https://bugs.launchpad.net/bugs/306011
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list