rediff mail no funciona en vivo usando codeigniter

Mi función de correo de codeigniter funcionaba bien en google mail y localhost Pero el mismo código no funciona para rediffmail en vivo.

Aquí está mi mensaje de error:

hello: 250-smtp.rediffmail.com 250-PIPELINING 250-8BITMIME 250-AUTH PLAIN LOGIN CRAM-MD5 250 STARTTLS Failed to authenticate password. Error: 535 5.7.0 Authorization failed:4 Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method. User-Agent: CodeIgniter Date: Thu, 24 May 2018 13:34:14 +0530 To: tprakashkce@gmail.com From: "Kumaran Hospital"  Return-Path:  Subject: =?utf-8?Q?=50=61=74=69=65=6E=74=20=44=65=74=61=69=6C=73?= Reply-To: "kumaranhospitalvlr@rediffmail.com"  X-Sender: kumaranhospitalvlr@rediffmail.com X-Mailer: CodeIgniter X-Priority: 3 (Normal) Message-ID:  Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="B_ATC_5b0671fec376f" This is a multi-part message in MIME format. Your email application may not support this format. --B_ATC_5b0671fec376f Content-Type: multipart/alternative; boundary="B_ALT_5b0671fec3734" --B_ALT_5b0671fec3734 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Billed Patient DetailsDear MedPlus, We are attached Prakash@test report in this mail.DetailsPatient Name: Prakash@test Mobile number : 8760239085 Insurer Name : ICICI Total Amount : 8000.000 paid Amount : 0 --B_ALT_5b0671fec3734 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable =3Ch1=3EBilled Patient Details=3C/h1=3E=3Cp=3EDear MedPlus,=3Cbr=3E We are = attached Prakash=40test report in this mail.=3Cbr=3E=3Cbr=3E=3Ch5=3EDetails= =3C/h5=3E=3Cbr=3EPatient Name: Prakash=40test=3Cbr=3E Mobile number : 8760239085=3Cbr=3E Insurer Name := ICICI=3Cbr=3E Total Amount : 8000.000=3Cbr=3E paid Amount : 0=3C/p=3E --B_ALT_5b0671fec3734-- --B_ATC_5b0671fec376f Content-type: application/x-unknown-content-type; name="kumaran" Content-Disposition: attachment; Content-Transfer-Encoding: base64 --B_ATC_5b0671fec376f-- 

Aquí está mi código. No sé por qué mi código funciona en local pero no en live.

 public function sendMail(){ $id = $this->uri->segment(3); $email = $this->Transaction_model->getEmail($id); $arr= $this->Transaction_model->getFilePath($id); $details = $this->Transaction_model->getEmailDetails($arr[0]->Customer_id); $TPA = $this->Transaction_model->getTPAName($arr[0]->Branch_id); $file_path = $arr[0]->file_path; $this->load->library('email'); //SMTP & mail configuration $config = array( 'protocol' => 'smtp', 'smtp_host' => 'ssl://smtp.rediffmail.com', 'smtp_port' => 465, 'smtp_user' => 'kumaranhospitalvlr@rediffmail.com', 'smtp_pass' => '', 'mailtype' => 'html', 'charset' => 'utf-8' ); $this->load->library('email'); $this->email->initialize($config); $this->email->set_mailtype("html"); $this->email->set_newline("\r\n"); //Email content $htmlContent = '

Billed Patient Details

'; $htmlContent .= '

Dear '.$TPA.',
We are attached '.$details[0]->Customer_name.' report in this mail.

Details

Patient Name: '.$details[0]->Customer_name.'
Mobile number : '.$details[0]->Mobile_number.'
Insurer Name : '.$arr[0]->insurer.'
Total Amount : '.$arr[0]->Total_amount.'
paid Amount : '.$arr[0]->paid_amount.'

'; $this->email->to($email); $this->email->from('kumaranhospitalvlr@rediffmail.com','Kumaran Hospital'); $this->email->subject('Patient Details'); $this->email->message($htmlContent); $attched_file= $_SERVER["DOCUMENT_ROOT"].$file_path; $this->email->attach($attched_file); if($this->email->send()){ redirect(base_url()."transaction/billed"); } else{ show_error($this->email->print_debugger()); } }

El mismo código funciona perfectamente en google mail y también funciona en mi localhost (rediffmail) funcionando perfectamente. Pero no funciona en vivo para rediffmail.