Re: Getting mail() to return false/0

From: Date: Wed, 15 Dec 2004 03:29:39 +0000
Subject: Re: Getting mail() to return false/0
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-204379@lists.php.net to get a copy of this message
'dude' is in fact not a user on my box, I was in fact something I choose trying to use as an example of something that was not valid. Running it again against "asdadasdsadasdadsad" returns the same result. When I do send mail that matters I include a From header, I was just trying to stick with as simple an example of what I expected not to work as possible. Ramil: I am surprised to hear that, as it directly contridicts what is in the builder.com article, but supports my reading of the manual. Hmm. paul On Tue, 14 Dec 2004 20:53:37 -0600, Travis Conway <travis@pinkbunnysuit.com> wrote: > > ----- Original Message ----- > From: "Paul Reinheimer" <preinheimer@gmail.com> > > > Hi, > > > > I was working with the mail function today to experiment with sending > > a few messages, and threw in the apropriate checks so when mail() > > can't send the message the apropriate errors were raised, however, I > > discovered I couldn't actually get mail() to return 0. Take the > > following call: > > mail("dude", "Daily Feed Update", "body"); > > I assume "dude" is a local user you are mailing to? Make sure you also give > a FROM address. Try this: > > mail("dude@domain.com", "Daily Feed Update", "body", "From: > me@mydomain.com") > > -Trav > > > > > When I run that exact call (well, I prepend echo, but you get the > > idea) it returns 1. I can't for the life of me understand why my MTA > > would accept an email with a destination of 'dude'. > > > > Any thoughts? > > > > > > > > paul > > -- > > Paul Reinheimer > > -- Paul Reinheimer Zend Certified Engineer

« previous php.general (#204379) next »