Click to See Complete Forum and Search --> : php to sendmail - not sending no errors


Anon
08-02-2002, 06:32 PM
I'm writing PHP on a hosted web site that I do not have full access (telnet) to files outside my web site or user directory. I can see that in phpinfo(), sendmail_path is /usr/sbin/sendmail -t -i, and the ISP support has confirmed that the path is correct.

I'm trying this, but am getting no errors and no mail is being delivered.
<?php
mail("rpoldervaart@sfaustingc.com", "my subject", "some text");
?>

I've also just been trying the popen("/usr/sbin/sendmail -t", ...) method and using fputs, but still, no errors and no mail gets delivered.

The ISP Support does not know how to diagnose if PHP to sendmail is having problems or what, and without telnet access, I don't know what else to try.

Any suggestions on how to debug this? Or what I should have the ISP do?

Thanks,

Robert

Anon
08-03-2002, 12:50 AM
Sir,
I am beginner in PHP.
I like to know the basic environment need
for learning PHP.

Anon
08-03-2002, 11:32 AM
Same problem here (probably since i switched to postfix to handle the mailing stuff or when i upgraded php) but it worked before (even with qmail and php/4.2.0)

No errors, but no mails

apaxson
08-03-2002, 12:33 PM
You're right ... without telnet access, it will be most difficult. Is the sendmail server the main Mail Hub, or is it just a client?

The problem i was having, was I could not send any mail. After further diagnosing, I noticed I could send mail to other domains just not to my own. Is "rpolervaart@sfaustingc.com" the same domain as the web site? If so, try emailing a different domain outside your ISP and see if that works. If it does, it may be that they have to configure sendmail as a "NULLCLIENT", routing all email requests to a central mail hub. If it is set up as a server, then it will notice it's a part of the same domain and try to deliver the mail locally itself.

Does that make sense??
I just resolved this problem of mine yesterday after an entire week!!

<grin>
Aaron

Anon
08-04-2002, 03:48 PM
Thanks Aaron,

I've tried emailing to addresses outside the sfaustingc domain and they don't deliver either. I'm not sure how to tell if the sendmail server is the mail mail hub or just a client.

Robert