Re: mail() doesn't work in self-compiled 4.3.4

From: Date: Mon, 02 Feb 2004 22:37:18 +0000
Subject: Re: mail() doesn't work in self-compiled 4.3.4
References: 1 2 3 4  Groups: php.install 
Request: Send a blank email to php-install+get-12700@lists.php.net to get a copy of this message
Well, looks like it was working: --------------- Thanks, I tried that and: Status on Exit is: 1 I currently have SMTP set to my outgoing server for my ISP AH, yes, it worked, thanks! Must be something with my post-nuke software. Mike Terzo wrote:
have you tried just doing like: <?php $to = "paul@edgehill.net"; $subject = "Test Message"; $body = "hello me"; $status = mail($to,$subject,$body); print "Status on Exit is: $status\n"; ?> put that in a small php file somewhere in your webtree.. and go to it via the web. see if it works. if so your good.. and something to do with post-nuke. if it doesn't.. then see what status gives you.. maybe that will lead to the problem. --mike terzo
Paul Furman wrote:
I also cannot get mail to work. I'm tinkering with a php package post-nuke that registers users & gets submissions. It's set up on my home win2k box with apache server and as I understand php has a mail server but maybe I need to also install a mail server. I changed SMTP in my php.ini from the default localhost to my ISP's outgoing mail server and per the php help docs I added a line setting the port to 25. The port setting fixed some errors I was getting from post-nuke and seemed to work but I'm not getting the actual mail confirming registration. Sven Riedel wrote:
On Fri, Jan 30, 2004 at 08:12:55AM -0500, John Holden wrote:
Can you run sendmail from the terminal? If not, maybe your firewall is restricting outgoing traffic, or maybe Sendmail simply isn't started.
Yes, sendmail works fine; I'm running a domain-wide mailserver on that box as well (I know I know, not ideal configuration). The mailserver in question is postfix, but I can use the sendmail wrapper to send mail, so that isn't the problem. Regs, Sven


« previous php.install (#12700) next »