Hi,

I'm new to php. I have downloaded and installed PHP 4.3.0 on a Windows NT 4.0 server. I have tested the configuration and changed the parameters in php.ini to fit my environment.
The basic code works fine, but one of the things I'd like to do is to send mails. I have found the sample code and tested the following :

mail("[EMAIL PROTECTED]", "test", "This is a test!","From: [EMAIL PROTECTED]")

But when I run this code, I get the following error:

Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in d:\www\mail.php on line 9

In fact, the sendmail_from is configured in the php.ini file (in the windows directory), and also forced in the line above (I have tried also without the "From:..." but it does neither work) . The smtp server is in a remote machine, and in fact, no connection is made from the php script (I have looked through the logs and there has been no attempt to connect)

Does anyone know where is the problem? Any suggestions will be welcomed.

Thanks in advance,

Juanan


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to