<?php
/*--------------------------------------------------------- 
* File:email.php
* Author:Tomix
* Description: 
* Created:2009
* -------------------------------------------------------
* Modified history:
* -------------------------------------------------------
* Copyright:
* -------------------------------------------------------
*/
	class email{
		public $toAddress;
		public $fromAddress;
		public $replyToAddress;
		public $subject;
		public $content;

		public $MIMEVersion = "1.0";
		public $contentType = "text/html;charset=utf-8";

		public function send(){
			$headers = "MIME-Version:".$this->MIMEVersion."\r\n";
			$headers .= "Content-type:".$this->contentType."\r\n";
			$headers .= "From: ".$this->fromAddress."\r\n";
			$headers .= "Reply-To: ".$this->replyToAddress."\r\n";

			return mail($this->toAddress, $this->subject, $this->content, $headers);
		}
	}
?>