Re: PEAR::Mail fails

From: Date: Fri, 09 Mar 2007 20:09:34 +0000
Subject: Re: PEAR::Mail fails
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26804@lists.php.net to get a copy of this message
Bonsoir Tony van der Hoff wrote:
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?
What version of Auth_SASL do you have ? pear info Auth_SASL With a quick glance, maybe this is corrected in the version 1.0.2, you might upgrade if you have a lower version -- toggg

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