Sending email using CodeIgniter and sendmail under ubuntu-8.10 |
[eluser]chotair[/eluser]
Hi umefarooq I tried putting in the mailpath in the config which I hadn't put earlier. It still takes a very long time to return the control back. Do I need to restart the server on any such thing? Here's my file for ref: - <?php class Emailmod extends Model { function __construct() { parent::Model(); $this->load->library('email'); $this->load->helper('security'); $this->load->helper('email'); } function index() { echo("You cannot access this page directly"); } function quick($name, $email2, $subject, $message) { 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('[email protected]'); $this->email->subject($subject); $this->email->message($message); $this->email->send(); echo $this->email->print_debugger(); } } ?> |
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
|