Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Dylan Lopez
Added: Mar 6, 2018 8:56 AM
Views: 7
  1. $this->load->library('email');
  2.  
  3. $this->email->from('your@example.com', 'Your Name');
  4. $this->email->to('someone@example.com');
  5. $this->email->cc('another@another-example.com');
  6. $this->email->bcc('them@their-example.com');
  7.  
  8. $this->email->subject('Email Test');
  9. $this->email->message('Testing the email class.');
  10.  
  11. $this->email->send();