Sending email using CodeIgniter and sendmail under ubuntu-8.10 |
[eluser]chotair[/eluser]
I put the code that was in my model in the controller itself...but didn't make any difference to the speed here's my modified controller <?php class Test extends Controller{ function Test() { parent::Controller(); $this->load->library('email'); $this->load->helper('security'); $this->load->helper('email'); } function quick() { $name = $_POST['name']; $email2 = $_POST['email2']; $subject = $_POST['subject']; $message = $_POST['message']; /* $this->load->model('emailmod'); $this->emailmod->quick($name, $email2, $subject, $message); */ $data['title'] = 'Quick Enquiry'; echo("Name: ".$name."<br />"); echo("Email: ".$email2."<br />"); echo("Subject: ".$subject."<br />"); echo("Message: ".$message."<br />"); $config['protocol'] = 'sendmail'; $config['mailpath'] = '/usr/sbin/sendmail'; $config['charset'] = 'iso-8859-1'; $config['wordwrap'] = TRUE; $this->email->initialize($config); $this->email->from($email2, $name); $this->email->reply_to($email2, $name); $this->email->to('raj.chotai@Sky.com'); $this->email->subject($subject); $this->email->message($message); $this->email->send(); echo $this->email->print_debugger(); /* $this->load->view('header', $data); $this->load->view('form/success'); $this->load->view('footer'); */ } } ?> The lines in red are the lines I commented to stop loading the model and instead do all that in the Controller itself. Speed stays still the same. Something is taking too long in the sendmail. Donno what? |
Messages In This Thread |
Sending email using CodeIgniter and sendmail under ubuntu-8.10 - by El Forum - 04-08-2009, 04:34 AM
Sending email using CodeIgniter and sendmail under ubuntu-8.10 - by El Forum - 04-08-2009, 04:40 AM
Sending email using CodeIgniter and sendmail under ubuntu-8.10 - by El Forum - 04-08-2009, 04:58 AM
Sending email using CodeIgniter and sendmail under ubuntu-8.10 - by El Forum - 04-08-2009, 05:07 AM
Sending email using CodeIgniter and sendmail under ubuntu-8.10 - by El Forum - 04-08-2009, 05:31 AM
|