Sending Email Not Working |
[eluser]renga[/eluser]
if ($this->form_validation->run() == FALSE) { $this->load->view('register.tpl', $data); } else { $this->load->model('registration_model'); $chk_register = $this->registration_model->register($_POST); if($chk_register == true) { $this->load->library('email'); $config['protocol'] = 'sendmail'; $config['mailpath'] = '/usr/sbin/sendmail'; $config['charset'] = 'iso-8859-1'; $config['wordwrap'] = TRUE; $this->email->initialize($config); $this->email->from('[email protected]', 'Enexions'); $this->email->to('E_mail'); $this->email->subject('Email Test'); $this->email->message('Testing the email class.'); $this->email->send(); echo $this->email->print_debugger(); $data['Success'] = "Account Activated Successfully !"; $this->load->view('register.tpl', $data); } else { redirect('/register','refresh'); } } |
Messages In This Thread |
Sending Email Not Working - by El Forum - 03-27-2009, 12:12 AM
Sending Email Not Working - by El Forum - 03-27-2009, 12:44 AM
Sending Email Not Working - by El Forum - 03-27-2009, 12:57 AM
Sending Email Not Working - by El Forum - 03-27-2009, 01:03 AM
Sending Email Not Working - by El Forum - 03-27-2009, 01:16 AM
Sending Email Not Working - by El Forum - 03-27-2009, 02:08 AM
Sending Email Not Working - by El Forum - 03-27-2009, 02:30 AM
Sending Email Not Working - by El Forum - 03-27-2009, 03:07 AM
Sending Email Not Working - by El Forum - 03-27-2009, 03:11 AM
Sending Email Not Working - by El Forum - 03-27-2009, 03:14 AM
Sending Email Not Working - by El Forum - 03-27-2009, 04:22 AM
Sending Email Not Working - by El Forum - 03-27-2009, 04:22 AM
Sending Email Not Working - by El Forum - 03-27-2009, 04:29 AM
Sending Email Not Working - by El Forum - 03-27-2009, 04:35 AM
|