<?
// this script will grab yahoo.com and send it in your mailbox
include("grabUrl.php");
$foo=new grabUrl();
$foo->createTo("joe@xyz.com");
$foo->createCC("bill@xyz.com");
$foo->createBCC("fred@xyz.com");
$foo->createFrom("Fred Dust","dust@xyz.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!";
}
?>
|