Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function send_email($subject,$message)
- {
- $this->input->post('contactform-email');
- $config['protocol'] = "smtp";
- $config['smtp_host'] = "ssl://smtp.gmail.com";
- $config['smtp_port'] = "465";
- $config['smtp_user'] = "lanelleglobaldealership@gmail.com";
- $config['smtp_pass'] = "lanelle2314";
- $config['charset'] = "utf-8";
- $config['mailtype'] = "html";
- $config['newline'] = "\r\n";
- $this->email->initialize($config);
- $this->email->from('lanelleglobaldealership@gmail.com', 'support@lanelleglobal');
- $list = array('jenarymadia01@gmail.com');
- $this->email->to($list);
- $this->email->subject($subject);
- $this->email->message($message);
- if ($this->email->send()) {
- return 1;
- }else{
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement