
April 30th, 2004, 08:52 AM
|
|
Registered User
|
|
Join Date: Apr 2007
Posts: 22,309
Time spent in forums: < 1 sec
Reputation Power: 25
|
|
|
PEAR::Mail - Undefined variable: comments
I try to send a mail using PEAR::Mail Class and get the following error:
Undefined variable: comments (c:apache2phppearMailRFC822.php: 620)
the emails are send and everything is OK, but i want to get rid off those message. I have tryed to set the "display_errors = off" in php.ini but the message is still there. What to do?
$headers['From'] = 'me@email.com';
$headers['To'] = you@email.com;
$headers['Subject'] = 'test';
$headers['Content-Type'] = 'text/html; charset=windows-1250';
$body = 'Some text.';
$params["host"] = 'smtp.email.com';
// Create the mail object using the Mail::factory method
$mail_object =& Mail::factory('smtp', $params);
$temp_a = $mail_object->send($recipients, $headers, $body);
Thanks
Jack
|