This is a discussion on Error using PEAR mail fuction. within the PHP Language forums, part of the PHP Programming Forums category; Call to undefined method PEAR_Error::send() Here are the lines of code in the php file: $params['sendmail_path'] = '/usr/lib/...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Call to undefined method PEAR_Error::send()
Here are the lines of code in the php file: $params['sendmail_path'] = '/usr/lib/sendmail'; $mail_object =& Mail::factory('sendmail', $params); $mail_object->send($recipients, $headers, $message); |
|
|||
|
On Mon, 10 Mar 2008 05:13:27 +0100, techjohnny@gmail.com
<techjohnny@gmail.com> wrote: > Call to undefined method PEAR_Error::send() > > Here are the lines of code in the php file: > > $params['sendmail_path'] = '/usr/lib/sendmail'; Sure about that? > $mail_object =& Mail::factory('sendmail', $params); if (PEAR::isError($mail_object)){echo $mail_object->getMessage();} else {$mail_object->send($recipients, $headers, $message);} -- Rik Wasmus |
![]() |
| Thread Tools | |
| Display Modes | |
|
|