Mail() problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ra?l

    Mail() problem

    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("xxx@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 <xxx@xxxxx.co m>
    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: xxx@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.
  • Markku Uttula

    #2
    Re: Mail() problem

    Ra?l wrote:[color=blue]
    > 17:41:05 [1] Error Socket Error # 10061 Connection refused.[/color]

    Well, that one seems pretty straight forward.
    [color=blue]
    > Unkown recipient: xxx@xxxxx.com[/color]

    Perhaps there really is no "xxx" at "xxxxx.com" :)
    [color=blue]
    > Some idea?[/color]

    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

    Comment

    Working...