[PHP] PHP/Apache/Windows 2000 - Does not send mail

2001-10-23 Thread Yuval Zukerman

Hi there,

I installed PHP 4.0.6 on a Windows 2000 machine running Apache 1.3.22.
I followed all the instructions for installation - added the php.ini file 
to the C:\winnt directory, added php to httpd.conf. I tried both the module 
and the CGI versions and the following problem still persisted:
Whenever I try to use the mail() function to send a an e-mail with a single 
file attachment, I receive a server error.

If I set the SMTP variable in php.ini to localhost (where I am running an 
SMTP server) , I receive a PHP error and Apache logs a 'Premature end of 
script headers: C:/php/php.exe' error.
If my SMTP variable is set to either a remote host, php reports in the next 
browser window of a server error at the line containing the mail() function 
call.

Do I have a permissions issue with any of my files or directories? I did 
not know how to set the IUSR_MachineName permissions as described in the 
instructions. Do I need to create such a user? where do I find it if it exists?

Thanks for any response,

Yuval


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PHP/Apache/Windows 2000 - Does not send mail

2001-10-23 Thread Nick Richardson

You need to make sure you have a few things configured on you SMTP Virtual
server.

Start IISAdmin and right click on 'Default SMTP Virtual Server' then choose
properties.

Ok, from here, things might not match perfectly because i'm running Windows
XP (no i didn't pirate it, i work for microsoft).

Under the access tab in access control, click authentication
make sure that anonymous access is checked.
you can leave basic auth and integrated windows auth checked also
click ok
click on relay under relay restrictions
add your local machine to the list allowed to relay, and enable relaying
go to the delivery tab
under outbound security, verify it's set to anonymous access.

If all this stuff is setup, you should be able to use mail() -

//Nick

-Original Message-
From: Yuval Zukerman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 8:31 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP/Apache/Windows 2000 - Does not send mail


Hi there,

I installed PHP 4.0.6 on a Windows 2000 machine running Apache 1.3.22.
I followed all the instructions for installation - added the php.ini file
to the C:\winnt directory, added php to httpd.conf. I tried both the module
and the CGI versions and the following problem still persisted:
Whenever I try to use the mail() function to send a an e-mail with a single
file attachment, I receive a server error.

If I set the SMTP variable in php.ini to localhost (where I am running an
SMTP server) , I receive a PHP error and Apache logs a 'Premature end of
script headers: C:/php/php.exe' error.
If my SMTP variable is set to either a remote host, php reports in the next
browser window of a server error at the line containing the mail() function
call.

Do I have a permissions issue with any of my files or directories? I did
not know how to set the IUSR_MachineName permissions as described in the
instructions. Do I need to create such a user? where do I find it if it
exists?

Thanks for any response,

Yuval


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]