PHP Mail / PHP.ini
| From: | Paul Wallace | Date: | Wed, 16 Jan 2002 09:17:35 +0000 |
| Subject: | PHP Mail / PHP.ini | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-11469@lists.php.net to get a copy of this message | ||
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.