Re: PEAR::Mail fails

From: Date: Fri, 09 Mar 2007 14:25:34 +0000
Subject: Re: PEAR::Mail fails
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26800@lists.php.net to get a copy of this message
On 8 Mar at 17:45 Tony van der Hoff <lists_0504@vanderhoff.org> wrote in message <gemini.jelio200l6tf406yi.lists_0504@vanderhoff.org> > 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? > Well, the silence is disappointing. Has nobody any clues? -- Tony van der Hoff | mailto:tony@vanderhoff.org Buckinghamshire, England

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