Advertisement
Guest User

lopikujyhtgrvfcd

a guest
Nov 27th, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. function callback_enviaEmail($post_array,$primary_key) {
  2. $this->load->library("email");
  3. $this->load->helper('url');
  4.  
  5. $emailDelTecnico=obtieneEmail($primary_key);
  6.  
  7.  
  8. $config = array(
  9. 'protocol' => 'smtp',
  10. 'smtp_host' => 'ssl://smtp.gmail.com',
  11. 'smtp_port' => 465,
  12. 'smtp_user' => '@.com',
  13. 'smtp_pass' => '',
  14. 'mailtype' => 'html',
  15. 'charset' => 'utf-8',
  16. 'newline' => "\r\n"
  17. );
  18.  
  19.  
  20. $this->email->initialize($config);
  21. $this->email->from('@gmail.com', 'IES Mª ');
  22. $this->email->to($emailDelTecnico);
  23. $this->email->subject('Incidencia IES');
  24. $this->email->message('Esta es la incidencia...');
  25. $this->email->send();
  26.  
  27. return true;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement