Re: PEAR mail problem

From: Date: Wed, 12 Mar 2008 00:12:12 +0000
Subject: Re: PEAR mail problem
References: 1 2 3 4 5  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28631@lists.php.net to get a copy of this message
brian <brian <at> zijn-digital.com> writes: > > No, not quite. Do you see why it might be a good idea to check for an > error *before* trying to use send()? > > $smtp = Mail::factory('smtp', > array ('host' => $host, > 'port' => $port, > 'auth' => true, > 'username' => $username, > 'password' => $password)); > > if (PEAR::isError($smtp)) > { > die("Here's your error right here: " . $smtp->getUserInfo()); > } > > $mail = $smtp->send($to, $headers, $body); > > b > Thanks for replying back Brian, Here's your error right here: Unable to find class for driver smtp. Just a tad miffed here now.... Paul.

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