load->library('email');
$subject = 'This is a test';
$message = 'This message has been sent for testing purposes.
';
// Get full html:
$body = '
' . html_escape($subject) . '
' . $message . '
';
// Also, for getting full html you may use the following internal method:
//$body = $this->email->full_html($subject, $message);
$result = $this->email
->from('joern.massow1@gmail.com')
// ->reply_to('yoursecondemail@somedomain.com') // Optional, an account where a human being reads.
->to('joern.massow1@gmailm.com')
->subject($subject)
->message($body)
->send();
var_dump($result);
echo '
';
echo $this->email->print_debugger();
exit;?>