Re: Send a Html page
| From: | David Newcomb | Date: | Tue, 04 Jul 2000 09:07:08 +0000 |
| Subject: | Re: Send a Html page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4705@lists.php.net to get a copy of this message | ||
Even simpler:
<html>
<body>
<?php
$fcontents = join( '', file( 'http://www.php.net' ) );
$result = mail("davidn@nospam.vnvi.com","it works",$fcontents);
if($result == TRUE)
{
echo "Sent";
}
else
{
echo "Sent";
}
?>
Is that simple enough for you.
Not sure about mail()'s return code, it only says it's bool in the manual.
David.
----- Original Message -----
From: Ghislain Bruyere <gb@ibanez.li>
To: <php-general@lists.php.net>
Sent: Monday, July 03, 2000 2:57 PM
Subject: [PHP] Send a Html page
> Hello,
>
> Have you a exemple to send a html page with php3 ?
>
> Have a nice day
>
> Thanks
>
> Ghislain