Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function index() {
- $config = Array(
- 'protocol' => 'smtp',
- 'smtp_host' => 'ssl://smtp.google.email.com',
- 'smtp_port' => 465,
- 'smtp_user' => 'example@gmail.com',
- 'smtp_pass' => '123456'
- );
- $this->load->library('email', $config);
- $this->email->set_newline("\r\n");
- $this->email->from('example@gmail.com', 'Willy Aguirre');
- $this->email->to('example@gmail.com');
- $this->email->subjet('Prueba de Correo');
- $this->email->message('Funciona, Genial :D!');
- if ($this->email->send()) {
- echo 'Tu correo ha sido enviado';
- } else {
- show_error($this->email->print_debugger());
- }
- }
Add Comment
Please, Sign In to add comment