Hello,
    I have recently installed PHP 4 (c:\PHP) with Apache. I have
successfully run multiple PHP scripts with some quite complex code. Except
for MAIL!
    Upon installing PHP I had 3 PHP.? files with a search for 'php.ini':

c:\PHP\pear\tests\php - with 2 line content:

; php.ini for PEAR tests
include_path=..

and two much more comprehensive files located at:

c:\PHP\php.ini-dist
c:\PHP\php.ini-recommended

When trying to configure the ini file to accomodate email, I rightly or
wrongly edited the 'php.ini-recommended' file to my SMTP entry to:

[mail function]
; For Win32 only.
SMTP = xxx.xxx.xxx.xxx (where xxx is my valid mail server IP)

I saved this and also saved it as php.ini in c:\PHP (again, rightly or
wrongly).

With the PHP code - mail($address, $subject, $message); - where the 3
variables ARE valid, the mail is NOT sent and I am given the warning:

Warning: Unknown error in c:\program files\apache
group\apache\htdocs\req\reqprocess.php on line 24

where line 24 is the line quoted above - mail($address, $subject, $message);

Can anyone offer me information on firslty if I have blundered blindly into
the .ini configuration, and a possible resolution of my broken email?

Many thanks

Paul.


-- 
PHP Windows 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]

Reply via email to