Re: Is it possible to send a html page via mail()???

From: Date: Sun, 18 Feb 2001 08:36:36 +0000
Subject: Re: Is it possible to send a html page via mail()???
Groups: php.general 
Request: Send a blank email to php-general+get-40406@lists.php.net to get a copy of this message
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: sifrim@rsb.ro\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&sifrim@rsb.ro HTH Regards, Sorin Ifrim David Tandberg-Johansen <david@datajo.no> wrote in message news:96n7cs$inb$1@toye.p.sourceforge.net... > 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: 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 >

« previous php.general (#40406) next »