Re: Re: PEAR mail problem
| From: | Christian Weiske | Date: | Fri, 07 Mar 2008 08:02:13 +0000 |
| Subject: | Re: Re: PEAR mail problem | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-28610@lists.php.net to get a copy of this message | ||
Hello Paul,
> I do understand the logic, however, from my laptop, the code works perfectly.
> I
> can run the exact same code and it works. However, when I try it using my
> school's server, it fails. Am I missing something?
Yes, obviously. There is an error, and its message is in the PEAR_Error object. As said previously,
check if it's an error (PEAR::isError($smtp)) and use getMessage() and getUserInfo() to
retrieve the error message.
--
Regards/Mit freundlichen Grüßen
Christian Weiske