renderWith(array(
         $this->class,
         'Form'
      ));
   }

   function doForm($data, $form) {
      $email = new ContactPage_Email(
         $data['Email'],
         'removed',
         'some subject'
      );
	  
      $email->populateTemplate(array(
         'FormData' => new ArrayData($data)
      ));
	  
      $email->send();

      Director::redirect('/submission-received/');
	  
   }

}


class ContactPage_Controller extends Page_Controller {

   function Form() {
   		return new ContactForm($this, 'Form');
	}

}


class ContactPage_Email extends Email_Template {

   protected $ss_template = 'ContactPage_Email';

}

?>