RE: [PHP] just wondering ....
| From: | Peter Houchin | Date: | Sun, 18 Mar 2001 15:04:51 +0000 |
| Subject: | RE: [PHP] just wondering .... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-44477@lists.php.net to get a copy of this message | ||
What am going to try & do is get it so mail() returns true then run this
script else do this
Peter
-----Original Message-----
From: CC Zona [mailto:cczona@nospam.invalid]
Sent: Monday, March 19, 2001 2:02 PM
To: php-general@lists.php.net
Subject: Re: [PHP] just wondering ....
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net