|
mail factory: msg#00309php.pear.general
Hey guys, I'm also having some trouble getting the error for the mail::factory. After I call the factory nothing more happens. the code: echo "opa"; $mail_object =& Mail::factory('smtp', $params); echo "opa"; But I see only the first "opa"... And if (PEAR::isError($mail_object)) { die($mail_object->getMessage()); } yields nothing. I tried adding the line: PEAR::setErrorHandling(PEAR_ERROR_PRINT); but I get: Fatal error: Undefined class name 'pear' in C:\Programme\Apache Group\Apache2\htdocs\basics\manda-email.php on line 17 and so I add: include('pear.php') and now the error is: Notice: Constant PEAR_ERROR_RETURN already defined in C:\php\pear\PEAR.php on line 24 Notice: Constant PEAR_ERROR_PRINT already defined in C:\php\pear\PEAR.php on line 25 Notice: Constant PEAR_ERROR_TRIGGER already defined in C:\php\pear\PEAR.php on line 26 Notice: Constant PEAR_ERROR_DIE already defined in C:\php\pear\PEAR.php on line 27 Notice: Constant PEAR_ERROR_CALLBACK already defined in C:\php\pear\PEAR.php on line 28 Notice: Constant PEAR_ERROR_EXCEPTION already defined in C:\php\pear\PEAR.php on line 29 Notice: Constant PEAR_ZE2 already defined in C:\php\pear\PEAR.php on line 31 Notice: Constant OS_WINDOWS already defined in C:\php\pear\PEAR.php on line 34 Notice: Constant OS_UNIX already defined in C:\php\pear\PEAR.php on line 35 Notice: Constant PEAR_OS already defined in C:\php\pear\PEAR.php on line 36 Fatal error: Cannot redeclare class pear in C:\php\pear\PEAR.php on line 73 Any ideias? Please help I'm completely lost... anything. Joao. ----- Original Message ----- From: "Pierre-Alain Joye" <paj@xxxxxxxxxx> To: "Jon Bennett" <jon@xxxxxxxx> Cc: <pear-general@xxxxxxxxxxxxx> Sent: Tuesday, November 18, 2003 11:56 AM Subject: Re: [PEAR] call to undefined function isError() ?? > On Tue, 18 Nov 2003 13:45:10 +0000 > Jon Bennett <jon@xxxxxxxx> wrote: > > > Thanks, that's sorted it. > > > > has this been changed recently or has it always been the case ?? > > always > > pierre > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: MDB with MS sql server: 00309, Stefan Neufeind |
|---|---|
| Next by Date: | Re: MDB with MS sql server: 00309, Thierry Bothorel |
| Previous by Thread: | MDB with MS sql serveri: 00309, Thierry Bothorel |
| Next by Thread: | [ANNOUNCEMENT] HTTP_WebDAV_Server-0.99 (beta) Released.: 00309, PEAR Announce |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |