Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public $gmail = array(
- 'host' => 'smtp.gmail.com',
- 'port' => 587,
- 'username' => 'mymail@gmail.com',
- 'password' => 'mypass',
- 'transport' => 'Smtp',
- 'tls' => true
- );
- $email = new CakeEmail();
- $email->helpers(array('Html', 'Text'));
- $email->config('gmail');
- $email->from($from_user);
- $email->sender($from_user);
- $email->replyTo($from_user);
- $email->to($to_send);
- $email->cc($cc_send);
- $email->bcc($cco_send);
- $email->subject('[ROOT] ' . $from_user . $this->request->data['sudjet']);
- $email->template('objecttypes', 'Axon')
- ->viewVars(array(
- 'informacionAxon' => $this->request->data['content']
- ));
- $email->emailFormat('html');
Add Comment
Please, Sign In to add comment