Mail() problem

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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("", "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 [1] Mx Domain of cached
17:41:04 [1] Connected with
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
Unkown recipient:

Some idea?

Thanks a lot for your help,

Yonder stands your orphan with his gun,
Crying like a fire in the sun.

Re: Mail() problem

Ra?l wrote:
Quoted text here. Click to load it

Well, that one seems pretty straight forward.

Quoted text here. Click to load it

Perhaps there really is no "xxx" at "" :)

Quoted text here. Click to load it

This is just a longshot, but possibly the problem is not in your end,
but in the receiver's end. Many SMTP-servers these days refuse
connections from machines that are not registered MaileXchangers for
their domain.

Have you tried sending messages with your ISP's "real" SMTP-server?

Markku Uttula

Site Timeline