uSE of Pear:Mail ????
Posted by: johny12 (
Date: December 12, 2006 08:24AM

hi ,
can anybody tell step by step procedure to use ,install pEAR :mail package and how to use it bcoz i m having trouble
i m getting the error message
Fatal error: Call to undefined method PEAR_Error::send() in C:\wamp\www\projects\mail1.php on line 18"

here th script
include('Mail.php');//frm pear package

$recipients = '';

$headers['From'] = '';
$headers['To'] = '';
$headers['BCC'] = ''; // Send a copy to the boss secretly.
$headers['Subject'] = 'Test message';

$body = 'Test message';

$params['sendmail_path'] = c:/wamp/sendmail'; //path to sendmail folder

// Create the mail object using the Mail::factory method
$mail_object =& Mail::factory('sendmail', $params);

$mail_object->send($recipients, $headers, $body);

thx in advance !!!

Options: ReplyQuote

Sorry, only registered users may post in this forum.