php - Email content having = unwantedly -
i send mail using codeigniter.. when receive mail having unwanted "=" everywhere. below are,
phasellus dictum sapien neque luctus cursus. pellentesque sem do=or, fringilla et pharetra vitae. consequat vel lacus. sed iaculis pulvinar=igula, ornare fringilla ante viverra et. in hac habitasse platea dictumst=. donec vel orci mi, eu congue justo. integer eget odio est, eget malesuada=orem. aenean sed tellus dui, vitae viverra risus. nullam massa sapien, pu=vinar eleifend fringilla id, convallis eget nisi. mauris sagittis dui. p=llentesque non lacinia mi. fusce sit amet libero sit amet erat venenatis s=llicitudin vitae vel eros. cras nunc sapien, interdum sit amet porttitor u=, congue quis urna.
code:
$config = array( 'protocol' => 'smtp', 'smtp_host' => 'mail.****.com', 'smtp_port' => 587, 'smtp_user' => '*****@****.com', 'smtp_pass' => '*****', 'mailtype' => 'html', 'charset' => 'utf-8' ); $this->load->library('email', $config); $this->email->set_newline("\r\n"); $this->email->from('udh@****.com', 'udhaya kumar'); $this->email->to('kat@****.com'); $this->email->subject('review form submitted'); $data['name'] = "udhaya kumar v"; $data['msg'] = "thanks submitting review form. has been submitted <manager name> appraisal."; $message = $this->parser->parse("email.tpl",$data,true); $this->email->message($message); $this->email->send();
it looks framework encodes mail quoted-printable format (all non-ascii characters converted =[hexnumber]) defacto standard mails. can please check, mail generated contains header is:
content-transfer-encoding: quoted-printable
if not, "simple" fix might add header mail , see if fixes issue. more sophisticated fix understand why header not added framework.
Comments
Post a Comment