Acknowledgement sent to "Luis Parravicini" <lparravi@gmail.com>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Subject: Recommends: php-net-smtp should be changed to Depends:
Date: Wed, 17 Jan 2007 00:58:47 -0300
Package: php-mail
Version: 1.1.6-2
php-net-smtp is required to use php-mail, but it's listed as a
recommended package.
To reproduce the error, create a php file (test.php)
================================
<?php
require_once 'Mail.php';
$headers['From'] = 'sender@example.com';
$headers['To'] = 'recipient@example.com';
$headers['Subject'] = 'Los mismos de siempre';
$body = 'Adonde vas, que buscas en el frio de la noche.';
$host = "mail.example.com";
$smtp = Mail::factory('smtp', array('host' => $host));
$mail = $smtp->send($to, $headers, $body);
if (PEAR::isError($mail))
echo($mail->getMessage());
else
echo('Message sent');
?>
================================
Run it with 'php -f test.php' and it gives the following error:
================================
Warning: send(Net/SMTP.php): failed to open stream: No such file or
directory in /usr/share/php/Mail/smtp.php on line 157
Warning: send(): Failed opening 'Net/SMTP.php' for inclusion
(include_path='.:/usr/share/php:/usr/share/pear') in
/usr/share/php/Mail/smtp.php on line 157
Fatal error: Cannot instantiate non-existent class: net_smtp in
/usr/share/php/Mail/smtp.php on line 159
================================
After installing php-net-smtp, the script runs without errors.
Reply sent to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to "Luis Parravicini" <lparravi@gmail.com>:
Bug acknowledged by developer.
(full text, mbox, link).
To: Luis Parravicini <lparravi@gmail.com>, 407237-done@bugs.debian.org
Subject: Re: [php-maint] Bug#407237: Recommends: php-net-smtp should be
changed to Depends:
Date: Wed, 17 Jan 2007 09:11:37 +0100
Version: 1.1.6-2
Luis Parravicini píše v St 17. 01. 2007 v 00:58 -0300:
> Package: php-mail
> Version: 1.1.6-2
>
> php-net-smtp is required to use php-mail, but it's listed as a
> recommended package.
That's correct. SMTP is not only facility you can use for Mail, you can
also use "mail" and "sendmail".
Ondrej.
--
Ondřej Surý <ondrej@sury.org> ^_^ http://blog.rfc1925.org/
No longer marked as fixed in versions 1.1.6-2.
Request was from Andreas Beckmann <anbe@debian.org>
to control@bugs.debian.org.
(Sat, 02 Nov 2013 15:57:13 GMT) (full text, mbox, link).
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sun, 01 Dec 2013 07:33:27 GMT) (full text, mbox, link).
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.