Re: just wondering ....
| From: | CC Zona | Date: | Mon, 19 Mar 2001 03:02:24 +0000 |
| Subject: | Re: just wondering .... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-44475@lists.php.net to get a copy of this message | ||
In article <NFBBJNAGDIPHLCGPBLKDAENNCAAA.peterh@sunrentals.com.au>,
peterh@vfsa.com.au ("Peter Houchin") wrote:
> If I have a email script and use the mail() function ... am i able to do
> this ..
>
> mail(values);
> if ($mail=1){
> do this
> }
> else {
> error
> }
Are you trying to test whether mail() returned true?
if (mail(values)){
do this
}
else {
error
}
(Keeping in mind that when mail() returns true, it's not saying whether the
mail really reached the destination server, only that it the function
executed successfully.)
--
CC