Re: mail() test method

From: Date: Mon, 19 Feb 2001 08:32:26 +0000
Subject: Re: mail() test method
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-40545@lists.php.net to get a copy of this message
mail() returns a true/false value to indicate success or failure. Though I can never remember which means which, and the docs are not too clear... if (mail('jacky@activelifestyle.com', 'test', 'test')){ echo "mail returned true<BR>\n"; } else{ echo "mail returned false<BR>\n"; } Also, there's some way of examining the mail queue for sendmail. I have absolutely no clue whatsoever how this is done, and man sendmail is entirely too long and convoluted for me to try to find out. :-) But you probably have more patience and/or are smarter than me anyway. If you're like 99.999% of the users that mess up, you left off the quotes in php.ini: sendmail_path = "/usr/local/bin/sendmail -t" The quotes in the sample in php.ini were for real, not just for show. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: "Jacky" <jacky@activelifestyle.com> Newsgroups: php.general Sent: Monday, February 19, 2001 2:15 AM Subject: [PHP] mail() test method Hi people My mail() script does not work, sniplet is simple that could not go wrong. I suspect there is something wrong with the php config on the server. Question is that how do I check it out if my assumption is correct? Is there any method that make php to write out something of the mail() does not work? Jack jacky@activelifestyle.com "There is nothing more rewarding than reaching the goal you set for yourself"

« previous php.general (#40545) next »