Hi,

    Try this :

<?
 $qry=getenv("QUERY_STRING");

 $sirarg=explode("&",$qry);
 $url_adr=$sirarg[0];
 $mail_adress=$sirarg[1];
 $fcontents = join ('', file ($url_adr));
 $posta=mail($mail_adress ,"Requested URL: ".$url_adr, $fcontents ,"From: 
[EMAIL PROTECTED]\n"."MIME-Version: 1.0\n"."Content-Type: text/html;\n");
 if ($posta ) {
  echo "The requested URL was  sent succesfully" ;
 }
 else {
  echo "There was an error while sending the requested URL " ;
 }
?>

You should call the script like this : scriptname.php?page_adress&email_adress
Here is an example :

 
http://10.116.1.133/script/email.php3?http://10.116.1.133/documen/php_nou/function.mail.html&[EMAIL PROTECTED]
   


HTH
Regards,
Sorin Ifrim


David Tandberg-Johansen <[EMAIL PROTECTED]> wrote in message 
96n7cs$inb$[EMAIL PROTECTED]">news:96n7cs$inb$[EMAIL PROTECTED]...
> Hello !
> 
> I wonder if there are any class or script out there that you can give an url
> or file as an variable and then it sends this as html-mail to a given
> emailadress.
> 
> david
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

Reply via email to