php-general Digest 10 Jul 2011 10:39:00 -0000 Issue 7396
Topics (messages 313994 through 313997):
PEAR Mail $obj->send()
313994 by: Brian Smither
313995 by: Jim Lucas
313996 by: Brian Smither
using wget in shell for download(snort)
313997 by: Negin Nickparsa
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
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.)
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?
--- End Message ---
--- Begin 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?
>
>
>
>
>
--- End Message ---
--- Begin Message ---
>>Instead of 'auth'=> true, I used 'auth' => "PLAIN" as
>> suggested by a user comment on the Mail documentation page.)
$obj = Mail::factory('smtp',
array ('host' => $host,
'port' => $port,
'auth' => true,
'username' => $username,
'password' => $password));
(Variables are set. $host = "smtp.gmail.com", $port = "465")
>Do you have a mail server running on localhost?
No.
>If you do not have a local MTA then you need to change the
>params so it uses a remote mail server.
It does.
--- End Message ---
--- Begin Message ---
I want to make a batch file and then exec it in php
I have a problem in batch file
wget have been installed in Yast I want to download a RuleFile from
snort.org
I used this on shell:
$ wget
http://www.snort.org/reg-rules/snortrules-snapshot-2900.tar.gz/c0e9480af637e53c7aae823a40a131edc1343db5\-O
snortrules-snapshot-2900.tar.gz
that string is an oinkcode from the site
this commandline has error and I don't know why
--- End Message ---