channel->item as $item) {
if($i < $num){
//Have a bit of a rest so we’re not posting too fast to our blogger blog
sleep(100);
$title = $item->title;
$title = str_replace(“”, “”, $title);
$subject = str_replace(“”, “”, $title);
$link = $item->link;
$description = $item->description;
$description = str_replace(“”, “”, $description);
$body = str_replace(“”, “”, $description);
//put our secret blogger email address here:
$to = “tyoagungwardhoyo.blogforpictures@blogger.com”;
//ignore this line – the script just needs something in the “From” field.
$headers = ‘From: mail@whatever.com’;
//Send the email / How’d we go?
if(mail($to, $subject, $body, $headers)) {
echo $subject. ” – sent ”;
}
else
{
echo $subject. ” – NOT sent ”;
}
}
//add one to our counter
$i++;
}
?>
No comments:
Post a Comment