$this->load->library('email'); $config['protocol'] = "smtp"; $config['smtp_host'] = "mail.warrebuysse.be"; // Replace this with your host (hotmail/gmail/domain) $config['smtp_port'] = "26"; // Replace this with your port $config['smtp_user'] = "mail@warrebuysse.be"; // Replace with your email $config['smtp_pass'] = "your password"; $config['charset'] = "utf-8"; $config['mailtype'] = "html"; $config['newline'] = "\r\n"; $this->email->initialize($config); $this->email->from('mail@warrebuysse.be', 'Warre Buysse'); $list = array('mail@warrebuysse.be'); $this->email->to($list); $this->email->subject('TESTING MAIL'); $this->email->message('

TEXT MSG

'); //Your cool html5 ;P $this->email->set_alt_message(strip_tags('

TEXT MSG

')); //Only text if ( ! $this->email->send()) { show_error($this->email->print_debugger()); } else { echo('DONE'); } //Used this? Please tell me at twitter! @warrebuysse