Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $config['protocol'] = 'smtp';
- $config['smtp_host'] = 'ssl://smtp.googlemail.com';
- $config['smtp_port'] = 465;
- $config['smtp_user'] = '*******@gmail.com'; // change it to yours
- $config['smtp_pass'] = '******'; // change it to yours
- $config['charset' ] = 'iso-8859-1';
- $config['newline' ] = "rn";
- $config['mailtype' ] = 'text';
- $config['validation' ] = TRUE;
- $this->load->library('email',$config);
- $this->email->from('*********@gmail.com');
- $this->email->to('********@gmail.com');
- $this->email->subject('Confirmation Email');
- $this->email->message('Thank you');
- if ($this->email->send())
- {
- echo "send successfully";
- }
- else
- {
- show_error($this->email->print_debugger());
- }
Add Comment
Please, Sign In to add comment