when registering a user, but his mail must receive a generated password. Registration passes, but sending the letter does not go, gives an error.

ErrorException [ Fatal Error ]: Call to undefined method Kohana::config() 

and in the Email class of the email module shows this line

 ($config === NULL) and $config = Kohana::config('email'); 

I wrote everything in the config file of the module, it works through smpt, I specified smpt.mail.ru, a login password and port 25. Tell me what could be the problem. So that's all right.

  • What is the difference, smtp or not smtp, when you have an error "call an undefined method"? - xEdelweiss pm

1 answer 1

A module from the old version will not necessarily fit the new one. Google on the very line that you show.

For the lazy, it is necessary

 ($config === NULL) and $config = Kohana::config('email'); 

replaced by

 ($config === NULL) and $config = Kohana::$config->load('email');