469,331 Members | 6,053 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,331 developers. It's quick & easy.

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

Jul 17 '05 #1
0 4146

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Alberto | last post: by
18 posts views Thread by Bryan Parkoff | last post: by
3 posts views Thread by bob | last post: by
6 posts views Thread by John J. Hughes II | last post: by
3 posts views Thread by Programmer | last post: by
1 post views Thread by oni | last post: by
3 posts views Thread by Dudely | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Marylou17 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.