diff --git a/email/QueuedEmail.php b/email/QueuedEmail.php deleted file mode 100644 index 928be4818..000000000 --- a/email/QueuedEmail.php +++ /dev/null @@ -1,36 +0,0 @@ - 'SS_Datetime', - 'Subject' => 'Varchar', - 'From' => 'Varchar', - 'Content' => 'Text' - ); - - static $has_one = array( - 'To' => 'Member' - ); - - static $has_many = array(); - - static $many_many = array(); - - static $defaults = array(); - - // overwrite this method to provide a check whether or not to send the email - function canSendEmail() { - return true; - } - - function send() { - $email = new Email( $this->From, $this->To()->Email, $this->Subject, $this->Content ); - $email->send(); - } -} -?> \ No newline at end of file diff --git a/email/QueuedEmailDispatchTask.php b/email/QueuedEmailDispatchTask.php deleted file mode 100644 index fc43f8303..000000000 --- a/email/QueuedEmailDispatchTask.php +++ /dev/null @@ -1,32 +0,0 @@ -now()); - - if( !$queued ) - return; - - foreach( $queued as $data ) { - - if( !$data->canSendEmail() ) - continue; - - $data->send(); - echo 'Sent to: ' . $data->To()->Email . "\n"; - - $data->delete(); - } - } - -} -?> \ No newline at end of file