mail function is to debug

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


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.
; 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


Site Timeline