PEAR::Mail fails

From: Date: Thu, 08 Mar 2007 17:45:42 +0000
Subject: PEAR::Mail fails
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26792@lists.php.net to get a copy of this message
Hi, I'm trying to move my mail form from basic php mail to PEAR::Mail. Here is my code: --------------------------------------------- $headers = array ( 'From' => $from, 'To' => $to, 'Subject' => $subject ); $smtp = Mail::factory( 'smtp', array ( 'host' => 'smtp-web.gradwell.net', 'auth' => true, 'username' => '******', 'password' => '******' ) ); $mail = $smtp -> send( $to, $headers, $content ); if ( PEAR::isError( $mail ) ) { form_failed_mail( "Mail failed: " . $mail->getMessage() ); } else { form_mailed( $sent, $not_sent ); } --------------------------------------------- Executing this results in the following error message: Only variable references should be returned by reference at line 94 in /usr/share/pear/Auth/SASL.php This seems to suggest I need to go digging around in the innards of the class, which I don't much fancy :( Has anyone here have any suggestions as to where I'm going wrong, please? -- Tony van der Hoff | mailto:tony@vanderhoff.org Buckinghamshire, England

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