[suspicious - maybe spam] Fatal error w/ Mail function

From: Date: Fri, 02 Sep 2005 19:14:09 +0000
Subject: [suspicious - maybe spam] Fatal error w/ Mail function
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20759@lists.php.net to get a copy of this message
I am trying to use the pear mail function and I keep getting this error message: Fatal error: Class mail_mail: Cannot inherit from undefined class mail in /home/website/public_html/Mail.php on line 26 Here's my code: $row = mysql_fetch_row($recordSet); $email = $row[1]; $Password = $row[0]; include ('Mail.php'); $recipients = '$email';
			$headers['From']    = 'DoNotReply@website.com';
			$headers['To']      = '$email';
$headers['Subject'] = "Password for $Member_ID"; $body = "Here is the password you requested:\n\n$Password\n\nLogin in at www.website.com"; $params['sendmail_path'] = '/usr/sbin/sendmail -t -i'; // Create the mail object using the Mail::factory method $mail_object =& Mail::factory('sendmail', $params); $mail_object->send($recipients, $headers, $body); I don't have the slightest idea why I'm getting the error message. I have not changed anything in the mail.php file. Can someone offer some suggestions as to how this can be fixed? Thanks- Lisa _________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/

« previous php.pear.general (#20759) next »