Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $config = Array(
- 'protocol' => 'smtp',
- 'smtp_host' => 'ssl://smtp.gmail.com',
- 'smtp_port' => 465,
- 'smtp_user' => 'dkumara85@gmail.com', //email id
- 'smtp_pass' => 'xxxxxxxxxxx', // password
- 'mailtype' => 'html',
- 'charset' => 'iso-8859-1'
- );
- $this->load->library('email', $config);
- $this->email->set_newline("rn");
- $this->email->from('dkumara85@gmail.com','my name');
- $this->email->to("dkumara85@gmail.com"); // email array
- $this->email->subject('email subject');
- $this->email->message("my mail body");
- $result = $this->email->send();
- show_error($this->email->print_debugger()); // for debugging purpose :: remove this once it works...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement