Advertisement
Guest User

Untitled

a guest
Apr 30th, 2014
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1. $config = array(
  2.     'mailtype' => 'html',
  3.     'bcc_batch_mode' => true,
  4.     'bcc_batch_size' => 200
  5. );
  6. $this->load->library('email');
  7. $this->email->clear(TRUE);
  8. $this->email->initialize($config);
  9. $this->email->from('xxxx@site.yyy', 'Site name');
  10. $this->email->to('');
  11. $this->email->bcc($emails); // array()
  12. $this->email->subject($subject); // string
  13. $this->email->message($content); // html content
  14. if( !$this->email->send() ) {
  15.     die('Error!');
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement