Re: How to check mail "false" ?

From: Date: Thu, 04 Jan 2001 13:11:45 +0000
Subject: Re: How to check mail "false" ?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-4798@lists.php.net to get a copy of this message
a 'parameter', or 'argument' is a value that you pass to a function so that it can take some actions on it. in print( 'hello world' ) ; the string 'hello world' is such a parameter. mail() requires at least three parameters. see www.php.net/mail At 14:05 4.1. 2001, Assil wrote the following: -------------------------------------------------------------- >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 >> > > > >-- >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 ------end of quote------ ____________________________________________________________ Cynic: A member of a group of ancient Greek philosophers who taught that virtue constitutes happiness and that self control is the essential part of virtue. cynic@mail.cz

« previous php.windows (#4798) next »