Re: PEAR Mail $obj->send()
| From: | Jim Lucas | Date: | Fri, 08 Jul 2011 17:02:37 +0000 |
| Subject: | Re: PEAR Mail $obj->send() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-313995@lists.php.net to get a copy of this message | ||
On 7/8/2011 9:50 AM, Brian Smither wrote:
> A client has:
> PHP 5.3 on Win7x64 running a local web app that needs to send mail.
> (This app was once hosted on a linux-based hosted space.) Apache 2.2
> is installed but apparently not being used. I think the IIS service
> is actually the web server that is engaged.
>
> During troubleshooting a wide range of problems, I discovered that
> the PEAR Mail module needed to be installed. So I installed PEAR
> (the PEAR Installer) and the Mail module with all dependencies. The
> PEAR_ENV was added. The system was rebooted.
>
> A test php script instantiates the Mail class and the script proceeds
> fine until the send() method is called. I get a browser with "Waiting
> for localhost" for more than 60 seconds. (I used die(); to trace the
> script. Instead of 'auth'=> true, I used 'auth' => "PLAIN"
> as
> suggested by a user comment on the Mail documentation page.)
Do you have a mail server running on localhost?
If the previous system was linux, then it was probably handing it off to
sendmail. If you do not have a local MTA then you need to change the params so
it uses a remote mail server.
>
> I believe all the parameters are correct. The actual web app works -
> except emailing.
>
> I added a firewall rule allowing outbound port 465 just for kicks.
>
> I can double-check for the PHP timeout setting but would PHP timeout
> in this case (waiting for a socket??)?
>
> Any suggestions?
>
>
>
>
>