Welcome Guest, Not a member yet? Register   Sign In
i have problem in email class with arabic
#1

[eluser]mohamed eid[/eluser]
hello
when i send the form useing email class it works good when sended english character
but when i used the arabic character it dont appear in the message
this is my code
Code:
$config['protocol'] = 'mail';

      $config['mailpath'] = '/usr/sbin/sendmail';

      $config['charset'] = 'utf-8';
      $config['mailtype'] = 'html';

      $this->email->initialize($config);

      $ufrom=$this->input->post('uemail');

      $usubject=$this->input->post('usubject');

      $this->email->from($ufrom);
     $list = array('[email protected]', '[email protected]');

      $this->email->to($list);

      $this->email->subject('$usubject');

       $data['uname']=$this->input->post('uname');

           $data['uemail']=$this->input->post('uemail');

           $data['importance']=$this->input->post('importance');

           $data['usubject']=$this->input->post('usubject');

           $data['umessage']=$this->input->post('umessage');
           ////// this view file that sended to theemail
           $msg=$this->load->view('sended',$data,true);

      $this->email->message($msg);
      if($this->input->post('submit'))

      {
           if($this->email->send())

           {
             echo $this->input->post('uemail');
              echo $this->input->post('umessage');
             echo 'Email sent.';
           }

           else

           {

            show_error($this->email->print_debugger());

           }

      }

      else

      {
         ///this is the form view
        $this->load->view('callus');

        $this->load->view('footer');

      }




Theme © iAndrew 2016 - Forum software by © MyBB