Re: Re: PEAR mail problem

From: Date: Wed, 12 Mar 2008 02:48:20 +0000
Subject: Re: Re: PEAR mail problem
References: 1 2 3 4 5 6  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28632@lists.php.net to get a copy of this message
Paul SIngh wrote:
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....
pear install Net_SMTP

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