i have tried to create a function to send Email and this is the code:

$this->load->library('email');

$this->email->from('gbagbo@presidency.com', 'elhaji');
$this->email->to('abdjan@ivoycoast.com');
$this->email->cc('another@another-example.com');
$this->email->bcc('them@their-example.com');

$this->email->subject('Email Test');
$this->email->message('Testing the email class.');

$this->email->send();

echo $this->email->print_debugger();

it displayed the following error:

Severity: Notice

Message: Undefined index: Subject

Filename: libraries/Email.php

Line Number: 969

i tried to add this configurations but failed:

$config = 'sendmail';
$config = '/usr/sbin/sendmail';
$config = 'iso-8859-1';
$config = TRUE;
$this->email->initialize($config);

but the error persists. can somebody help me ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.