Test Email
function test_mail(){
$this->load->library('email');
$subject = 'Pulse Motors Test Email';
$postd['message'] = 'This is a test email';
$body = $this->load->view('site/test_template', $postd, TRUE);
$result = $this->email
->from('Pulse Motoros - TEST')
->reply_to('noreply@pulsemotors.co.uk')
->to('ranga.mahesh@pluspro.com')
->cc('rangam.sl@gmail.com')
->bcc('gayan.c@icloud.com')
->subject($subject)
->message($body)
->send();
//echo $this->email->print_debugger();
echo json_encode( array('status' => 'success' , 'message' => 'Email sent! check inbox') ); exit();
}