Welcome Guest, Not a member yet? Register   Sign In
Error with email class in CI 3.1.8
#5

(This post was last modified: 04-04-2018, 05:59 PM by ardavan.)

(04-04-2018, 12:14 PM)Paradinight Wrote: $this->email is a string not an object.

Have you something like $this->email = "string" in the controller? or an attribute $email = "string" ?

i am following this https://www.codeigniter.com/user_guide/l...ding-email
as i said this works on my another project which is different version of CI (3.1.5) but in 3.1.8 doesnt work.

this is my project in CI 3.1.5 which the email works perfectly
PHP Code:
$from $this->config->item('email_info');
$to $this->session->flashdata('to');
$subject $this->session->flashdata('subject') . ' | ' $this->AppName;
$message $this->session->flashdata('message');

$this->email->from($form['address'], $from['name']);
$this->email->to($to);
        
if(
$cc$this->email->cc($cc);

$this->email->subject($subject);
$this->email->message($message);
$this->email->send(); 
Reply


Messages In This Thread
Error with email class in CI 3.1.8 - by ardavan - 04-04-2018, 12:57 AM
RE: Error with email class in CI 3.1.8 - by ardavan - 04-04-2018, 05:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB