472,143 Members | 1,545 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 software developers and data experts.

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 4242

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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.