• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fatal error: Call to a member function to() on a non-object in /hermes/bosweb/web200/b2009/ipg.agrobengalcom/shopnodinga

#1
[eluser]Sumon[/eluser]
I use same code for sending email in 2 different controller. First one works fine for me but second one shows me the following error.
Quote:Fatal error: Call to a member function to() on a non-object in /hermes/bosweb/web200/b2009/ipg.agrobengalcom/shopnodinga/application/controllers/mist.php on line 114

here is portion of my controller code where i am getting error

Code:
$this->load->library('email');echo $_POST['email'];//Echo shows perfect email address
$this->email->to($_POST['email']); //error indicate this line
$this->email->from('info@shopno-dinga.com','Shopno-Dinga.Com');
$this->email->subject('Update MIST Address Book using this information.');
$message = "test";
$this->email->message($message);
$this->email->send();

what's wrong here ? help me to figure out.


Messages In This Thread
Fatal error: Call to a member function to() on a non-object in /hermes/bosweb/web200/b2009/ipg.agrobengalcom/shopnodinga - by El Forum - 01-02-2011, 05:29 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.