mail function is failing...how to debug

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ask Me

    mail function is failing...how to debug

    Hi,

    I am using the mail function and specify a remote SMTP server.

    After setting the variables, the command is issued as:

    mail($receiver1 , $subject, $mailtxt, $from);

    The relevant section of the php.ini file is:


    [mail function]
    ; For Win32 only.
    SMTP = k2smtpout.secur eserver.net
    ; For Win32 only.
    ; sendmail_from = a valid email address is not being displayed
    ; sendmail_path = /var/qmail/bin/qmail-inject

    I have tested the server by telnet'ing to port 25 and issuing SMTP
    commands from stdin. The mail is being delivered.

    When I execute the function from php, I get no errors but the mail is
    not being delivered.

    I have tested it on another server and it works.

    I have also tried using an SMTP class that has a few more functions
    but it doesn't work either.

    I suspect it has something to do with the socket not being opened
    correctly but have no idea how to find out what's happening.

    Please send responses to dmgray0325 at yahoo dot com

    Regards

Working...