Пример #1
0
 public function __construct()
 {
     parent::__construct($exceptions = true);
     ///Eswto permite atrapar los erroes con TRY CATCH, de otro modo siempre habra
     $this->SMTPDebug = false;
     $this->SMTPDebug = yii::app()->settings->get('email', 'email_smtpdebug') + 0;
     //DEBE SER UN ENTERO Y CERO =FALSE
     $this->Host = yii::app()->settings->get('email', 'email_servemail');
     // $this->exceptions = yii::app()->settings->get('email','email_servemail');
     $this->SMTPAuth = true;
     $this->SetLanguage('es');
     $this->Username = yii::app()->settings->get('email', 'email_adminemail');
     $this->Password = '******';
     $this->_copiarausuario = yii::app()->user->um->getFieldValue(Yii::app()->user->id, 'recibecopiasmail') == '1' ? true : false;
     $this->_usarcorreousuario = yii::app()->params['email_usamaildeusuario'] == '1' ? true : false;
 }