PEAR::Mail

From: Date: Fri, 30 Apr 2004 14:07:22 +0000
Subject: PEAR::Mail
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12253@lists.php.net to get a copy of this message
I try to send an mail using PEAR::Mail Class with the code bellow and get the following error: Undefined variable: comments (c:\apache2\php\pear\Mail\RFC822.php: 620) The emails are send and everything is OK, but i allways get the error message. 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

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