|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
RE: PEAR::Mail - Undefined variable: comments
Set your error_reporting level in the php.ini file to:
error_reporting = E_ALL & ~E_NOTICE |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PEAR Packages > PEAR::Mail - Undefined variable: comments |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|