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 <?php include('Mail.php');//frm pear package
$recipients = 'joe@example.com';
$headers['From'] = 'johny@example.com'; $headers['To'] = 'johny@example.com'; $headers['BCC'] = 'boss@example.com'; // 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);