メールを送信するメール送信機能を次に示しますが、2 種類のメール (txt、html) があります。問題は、それが私のyahooアドレスに送信されたときにhtmlを送信することですが、これは問題ありませんが、レンダリングする代わりにhtmlコードを表示します。どうすれば修正できますか。
/**
* Send email message of given type (activate, forgot_password, etc.)
*
* @param string
* @param string
* @param array
* @return void
*/
function sendEmail($template, $type, $subject, $userData)
{
$this->ci->load->library('email');
$this->ci->email->from('kowmanagement@kansasoutlawwrestling.com', 'Kansas Outlaw Wrestling');
$this->ci->email->reply_to('kowmanagement@kansasoutlawwrestling.com', 'Kansas Outlaw Wrestling');
$this->ci->email->to($userData['email']);
$this->ci->email->subject($subject);
$this->ci->email->message($this->ci->load->view($template .'/email/'.$type.'-html', $userData, TRUE));
$this->ci->email->set_alt_message($this->ci->load->view($template .'/email/'.$type.'-txt', $userData, TRUE));
$this->ci->email->send();
}