Guest User

Untitled

a guest
Mar 21st, 2018
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. public $gmail = array(
  2. 'host' => 'smtp.gmail.com',
  3. 'port' => 587,
  4. 'username' => 'mymail@gmail.com',
  5. 'password' => 'mypass',
  6. 'transport' => 'Smtp',
  7. 'tls' => true
  8. );
  9.  
  10. $email = new CakeEmail();
  11. $email->helpers(array('Html', 'Text'));
  12. $email->config('gmail');
  13. $email->from($from_user);
  14. $email->sender($from_user);
  15. $email->replyTo($from_user);
  16. $email->to($to_send);
  17. $email->cc($cc_send);
  18. $email->bcc($cco_send);
  19. $email->subject('[ROOT] ' . $from_user . $this->request->data['sudjet']);
  20. $email->template('objecttypes', 'Axon')
  21. ->viewVars(array(
  22. 'informacionAxon' => $this->request->data['content']
  23. ));
  24. $email->emailFormat('html');
Add Comment
Please, Sign In to add comment