Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
- class MY_Controller extends CI_Controller {
- public function _send_mail($to,$subjet,$message,$cc=null)
- {
- $this->load->library('email');
- $this->email->from(config_item('smtp_user'), config_item('sender_name'));
- $this->email->to($to);
- if ($cc !== null) $this->email->cc($cc);
- $this->email->reply_to(config_item('reply_to'));
- $this->email->set_alt_message('You need to HTML supported web browser or email client to display this email');
- $this->email->subject($subject);
- $this->email->message($message);
- if ($this->email->send(FALSE)) return true;
- else { return $this->email->print_debugger(); $this->email->clear(TRUE); }
- }
- }
- /* End of file MY_Controller.php */
- /* Location: ./application/core/MY_Controller.php */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement