php - SMTP :mail sending failed in codeigniter -


here settings sending mail using smtp

 $config = array(                 'protocol' => 'smtp',                 'smtp_host' => 'ssl://smtp.gmail.com',                 'smtp_port' => 465,                 'smtp_user' => 'example@gmail.com', // change yours                 'smtp_pass' => 'example', // change yours                 'mailtype' => 'html',                 'wordwrap' => true  );         $this->load->library('email',$config);         $this->email->set_newline("\r\n");         $data = "username:".$_post['username']."\n\npassword:".$_post['password']."\n\n";         $message="your login details spotmyticket agent portal\n\n". $data."\n\n";          $message.="click here login<a href='http://root5solutions.com/agentspotmyticket/'>login</a>";          $this->email->from('admin@spotmyticket.in','spotmyticket');         $this->email->to('example@gmail.com');          $this->email->subject('spotmyticket agentportal login details');          $this->email->message($message);         $this->email->send() 

this error message i'm getting

hello: 220-p3plcpnl0950.prod.phx3.secureserver.net esmtp exim 4.85 #2 fri, 29 jan 2016 00:01:29 -0700 220-we not authorize use of system transport unsolicited, 220 and/or bulk e-mail. following smtp error encountered: 220-p3plcpnl0950.prod.phx3.secureserver.net esmtp exim 4.85 #2 fri, 29 jan 2016 00:01:29 -0700 220-we not authorize use of system transport unsolicited, 220 and/or bulk e-mail. unable send email using php smtp. server might not configured send mail using method. user-agent: codeigniter date: fri, 29 jan 2016 12:31:24 +0530 from: "spotmyticket" return-path: to: shamonsha665@gmail.com subject: =?utf-8?q?spotmyticket=20agentpo?==?utf-8?q?rtal=20logi?==?utf-8?q?n?= =?utf-8?q?=20details?= reply-to: "admin@spotmyticket.in" x-sender: admin@spotmyticket.in x-mailer: codeigniter x-priority: 3 (normal) message-id: <56ab0e449ee15@spotmyticket.in> mime-version: 1.0

content-type: multipart/alternative; boundary="b_alt_56ab0e449ee57"

this multi-part message in mime format. email application may not support format.

--b_alt_56ab0e449ee57 content-type: text/plain; charset=utf-8 content-transfer-encoding: 8bit

gmail smtp not working properly,its better use own domain smtp details


Comments