#!/usr/bin/php setExpired(); $list = $v->fetchRecentlyChanged(1); // the list of modified companies if(count($list) == 0) { return; } $mail = << $em) { $recipients[$key] = "<{$em}>"; } $message = array( 'To' => implode(', ', $recipients), 'From' => "webmaster@landscapeonline.com", 'Subject' => "Recently Changed Subscribers - " . date('F j, Y'), 'Return-path' => 'webmaster@landscapeonline.com', 'bodyTXT' => $mail ); if($v->sendMail($message) !== TRUE) { print("Error sending mail."); } return; ?>