Debian Bug report logs - #407237
Recommends: php-net-smtp should be changed to Depends:

version graph

Package: php-mail; Maintainer for php-mail is Debian PHP PEAR Maintainers <pkg-php-pear@lists.alioth.debian.org>; Source for php-mail is src:php-mail (PTS, buildd, popcon).

Reported by: "Luis Parravicini" <lparravi@gmail.com>

Date: Wed, 17 Jan 2007 04:03:01 UTC

Severity: normal

Found in version php-mail/1.1.6-2

Done: Ondřej Surý <ondrej@sury.org>

Bug is archived. No further changes may be made.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#407237; Package php-mail. (full text, mbox, link).


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).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: "Luis Parravicini" <lparravi@gmail.com>
To: submit@bugs.debian.org
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).


Message #10 received at 407237-done@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@sury.org>
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).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 23 19:33:35 2026; Machine Name: berlioz

Debian Bug tracking system

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/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.