Commits

christiansalazar committed 397efc9 Merge

Merge e:/code/terabyte/ghorlan/protected/modules/cruge

  • Participants
  • Parent commits 815a8d6, 597d65a

Comments (0)

Files changed (1)

File components/CrugeMailer.php

 	class CrugeMailer extends CrugeMailerBase implements ICrugeMailer {
 	
 		public $debug = false;
+		public $throwsAnExceptionIfMailFails = false;
 	
 		// debido a que es un componente.
 		public function init(){
 		*/
 	        public function sendEmail($to,$subject,$body) 
 	        {
-	            if(!parent::sendEmail($to,$subject,$body)) {
-					if($this->debug == false)
-	                throw new CrugeException(
-						self::t('El Mail no ha sido enviado revise la configuración del servidor'));
-	            }
-	            return true;
+	            return parent::sendEmail($to,$subject,$body);
 	        }
 	}
 ?>