Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $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('<h1>TEXT MSG<h1>'); //Your cool html5 ;P
- $this->email->set_alt_message(strip_tags('<h1>TEXT MSG<h1>')); //Only text
- if ( ! $this->email->send())
- {
- show_error($this->email->print_debugger());
- } else {
- echo('DONE');
- }
- //Used this? Please tell me at twitter! @warrebuysse
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement