-1
私はcodeigniterと仕事をしていますので、何が起こっているのか分かりません。Hordeウェブメールに関する問題の1つです。アプリケーションでは、テキストをフォーマットするhtmlタグが表示されるので、stackoverflowの質問で見つかったコードの一部を追加しますが、メールにすべてのテキストが表示されません。Hordeのhtml形式の設定が間違っています
例:
This is a multi-part message in MIME format. Your email application may not support this format. --B_ALT_5874cd6abc9bb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 250 dasasdasd 1 0 [email protected] AirOne Continental 00135 17-01-27 OPO Porto, Portugal LIS Lisbon, Portugal Cn Wn LIS Lisbon, Portugal 250+0+0 17-01-10 12:02 Valor total: 250 Nome: dasasdasd Nr. adultos: 1 Nr. crianças:
私はCodeIgniterの上、メールを送信する設定を再確認したが、カントは、問題が何であるかを発見しました。
マイコード:
$config = Array(
'protocol' => 'smtp',
'smtp_host' => 'mail.domain.com',
'smtp_port' => 25,
'smtp_user' => '[email protected]',
'smtp_pass' => 'mypassword',
'mailtype' => 'html',
'charset' => 'utf-8',
'wordwrap' => TRUE
);
$this->load->library('email');
$this->email->initialize($config);
$this->email->set_newline("\r\n");
$this->email->set_mailtype('html');
$this->email->set_header('MIME-Version', '1.0; charset=utf-8');
$this->email->set_header('Content-type', 'text/html');
$this->email->from('[email protected]', 'Name');
$this->email->to('[email protected]');
$this->email->reply_to($_SESSION['email']);
$message = $this->load->view('email/finalizar_nos',$data,TRUE); // this will return you html data as message
$this->email->subject('NEW EMAIL: '. $_SESSION['name']);
$this->email->message($message);
$result = $this->email->send();
$data['data_inserido'] = date('Y-m-d H:i:s');
$this->db->insert('emails',$data);
echo $this->db->insert_id();
場合は、[ACCEPTとしてマーク、それを**]このヘルプしてください**(http://meta.stackexchange.com/questions/5234/how-does-accepting - 答え - 仕事)。したがって、[** VOTE UP **は私のタグカウントを導くでしょう](http://meta.stackexchange.com/questions/173399/how-to-upvote-on-stack-overflow) –