Subversion Repositories SmartDukaan

Rev

Rev 18870 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18870 Rev 20394
Line 224... Line 224...
224
		}
224
		}
225
		return $this->redirect(array('action' => 'index'));
225
		return $this->redirect(array('action' => 'index'));
226
	}
226
	}
227
 
227
 
228
	public function crm_mail(){
228
	public function crm_mail(){
229
		$this->log(print_r($this->request->data,1),'feedbacks');
229
		//$this->log(print_r($this->request->data,1),'feedbacks');
230
		$this->loadModel('User');
230
		$this->loadModel('User');
231
		$this->User->recursive = -1;
231
		$this->User->recursive = -1;
232
		$user = $this->User->findById($this->request->data['user_id']);
232
		$user = $this->User->findById($this->request->data['user_id']);
233
		$emailConf = Configure::read('emailsCrm');
233
		$emailConf = Configure::read('emailsCrm');
234
		$Email = new CakeEmail('smtp');
234
		$Email = new CakeEmail('smtp');