Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. public function send_email($subject,$message)
  2. {
  3. $this->input->post('contactform-email');
  4. $config['protocol'] = "smtp";
  5. $config['smtp_host'] = "ssl://smtp.gmail.com";
  6. $config['smtp_port'] = "465";
  7. $config['smtp_user'] = "lanelleglobaldealership@gmail.com";
  8. $config['smtp_pass'] = "lanelle2314";
  9. $config['charset'] = "utf-8";
  10. $config['mailtype'] = "html";
  11. $config['newline'] = "\r\n";
  12.  
  13. $this->email->initialize($config);
  14.  
  15. $this->email->from('lanelleglobaldealership@gmail.com', 'support@lanelleglobal');
  16. $list = array('jenarymadia01@gmail.com');
  17. $this->email->to($list);
  18. $this->email->subject($subject);
  19. $this->email->message($message);
  20. if ($this->email->send()) {
  21. return 1;
  22. }else{
  23. return 0;
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement