Hi there,
Windows XP Professional SP2
Apache HTTP Server 1.3.33
PHP Version 4.3.10
i'm just trying to send a mail with the mail() function but it seems
not to work.
First I installed a mail server (miniRelay v0.9.77d) and then I
configured the php.ini file like this:
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
sendmail_from = localhost
Then I simply use this function in a script:
mail("xx*@xxxxx.com", "Hello", "This is a message from miniRelay.");
I run the script and the MAIL SERVER returns the error:
17:41:03 Command: MAIL FROM <localhost>
17:41:03 Command: RCPT TO <xx*@xxxxx.com>
17:41:03 [1] Mx Domain of xxxxx.com cached
17:41:04 [1] Connected with xxxxx.com
17:41:05 [1] Error Socket Error # 10061
Connection refused.
I've install a different mail server (QVT/Net 5.1.0 SMPT Daemon) and
it returns the equivalent error message:
Connection initiated.
Connection requested from 127.0.0.1
Unkown recipient: xx*@xxxxx.com
Some idea?
Thanks a lot for your help,
Raśl.
-----
Yonder stands your orphan with his gun,
Crying like a fire in the sun.