Re: Mail() function problem

From: Date: Thu, 12 Sep 2002 04:07:49 +0000
Subject: Re: Mail() function problem
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-116073@lists.php.net to get a copy of this message
In article <20020911161049.55290.qmail@pb1.pair.com>, alva@stridec.com says... > Hi, > > does that mean I can do nothing about it? > > Alva > > "Pekka Saarinen" <contacts@sci.fi> wrote in message > news:5.1.0.14.2.20020910165537.01633fd8@contacts.pop.sci.fi... > > At 9/10/2002, you wrote: > > >Hi Everyone, > > > > > >I did a simple test with this script: > > > > > ><?php > > >mail("alva@stridec.com", "test", "this is a test mail"); > > >echo "done"; > > >?> > > > > > >I run the script from web accounts on different servers. I can receive > the > > >test mail from some but not from others. Is there any configurations that > I > > >am missing here? > > > > My guesses: > > > > Many mail servers are configured so that they send mail only if the sender > > receives mail at the same time. One other possible pitfall is that reverse > > IP lookup is not working correctly and your server rejects the mail as it > > cannot verify the sender host. Also, many (well configured) servers do not > > send when there is no live account for that sender. You can use the fourth argument to mail() to set additional headers, such as From: validuser@validhost.valid.domain to try and get around the problem. -- David Robley A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet?

« previous php.general (#116073) next »