Re: call to undefined function isError() ??
| From: | Pierre-Alain Joye | Date: | Tue, 18 Nov 2003 13:26:38 +0000 |
| Subject: | Re: call to undefined function isError() ?? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-9000@lists.php.net to get a copy of this message | ||
On Tue, 18 Nov 2003 13:22:23 +0000
Jon Bennett <jon@jben.net> wrote:
> am I right in thinking that the main pear libs aren't being included
> ???
It returns a PEAR_Error object on failure. Mail_Error
object does not exist.
Use:
$mail =..factory..
if (PEAR::isError($mail)) {
}
see http://pear.php.net/manual/en/package.mail.mail.factory.php
for more
infos.
hth
pierre