Welcome Guest, Not a member yet? Register   Sign In
Message: Call to a member function email->from() on string
#8

(04-05-2018, 12:05 PM)dave friend Wrote:
(04-05-2018, 10:24 AM)php_rocs Wrote: @Dave friend,

I am trying to ask what are the specific values that the from method is expecting.  It could be a case of wrong values that are causing the error.

The method CI_Email::from() accepts three arguments, all three are strings, the second and third arguments are optional. Read the docs. Nothing happens in the method that would produce the error described.

That error message would seem to indicate that the variable $this->email is a string and not an instance of the CI_Email class. How that occurs is not determinable in the code the OP provides.

I just found the error by myself and you are totally correct.. I accidentally assign $this->email as a string somewhere in my code and I ddn't notice that... 

Thank you for your reply.... highly appreciated.. I can say your reply is the answer to my problem... thank you very much..
Reply


Messages In This Thread
RE: Message: Call to a member function email->from() on string - by kylmiko - 04-09-2018, 07:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB