'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@xxxxxxxxxxxxxxxxx> wrote: > > ----- Original Message ----- > From: "Paul Reinheimer" <preinheimer@xxxxxxxxx> > > > 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@xxxxxxxxxx", "Daily Feed Update", "body", "From: > me@xxxxxxxxxxxx") > > -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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php