Re: How to check mail "false" ?

From: Date: Thu, 04 Jan 2001 13:05:00 +0000
Subject: Re: How to check mail "false" ?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-4797@lists.php.net to get a copy of this message
I am using "mail" command (in php4). I put: $check_email_command_variable = mail(); I got:: Warning: Wrong parameter count for mail() What parameter ? Hezy =========== > put like this: > > $check_email_command_variable = emailcommand(); > > if ($check_email_command_variable) { > ... do something here... > } else { > ... do something here... > } > > > > > I need to check if an email (mail command) action > > was sucseefully performed. > > > > What can I use ? > > > > Hezy > > ========== > > > > > if ($var) { > > > do if true > > > } else { > > > do if false > > > } > > > > > > Or if it's a parameter passed by URL, a better way is: > > > if (isset($var)) { > > > etc... > > > > > > Or if you want to check for false: > > > if (!$var) { > > > etc... > > > > > > Or: > > > if (!isset($var)) { > > > etc... > > > > > > Is this what you mean by simple true/false checking? > > > > > > Gonzalo. > > > > > > > I could not find any documentation about simple checking > > > > for false (or true). > > > > > > what are the best ways for that ? > > > > > > Hezy > > > > > > > > > > > > > > -- > > > PHP Windows Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > > > For additional commands, e-mail: php-windows-help@lists.php.net > > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.windows (#4797) next »