Location: PHPKode > scripts > Grab URL > grab-url/mail_example.php
<?
// this script will grab yahoo.com and send it in your mailbox
include("grabUrl.php");
$foo=new grabUrl();
$foo->createTo("hide@address.com");
$foo->createCC("hide@address.com");
$foo->createBCC("hide@address.com");
$foo->createFrom("Fred Dust","hide@address.com");
$foo->createSubject("This is a test mail! Please Ignore!");
$foo->getData("http://www.yahoo.com");
if($foo->sendMail()){
	echo "Mail Sent!";
}else{
	echo "Error Sending Mail!";
}
?>
Return current item: Grab URL