codeigniter - Email library not sending the correct link -
i have following code: $link = "www.domain.com/profile/forgot_password?user=".$username . "&key=".$key; $this->email->message('you requested reset password. follow link. <a href="'.$link.'"> ' . $link . "</a>. thank you,system support."); all trying here create friendly message user when wish reset password. supposed be: you requested reset password. click here so! on click here word should have link in href go reset page. not working above code seems escaping html showing below in message sent. should interpret html tags not send them. <a href='hdkjahskjdaskhdsjkahd'> djadjalksjdklasjdkajsd</a> ensure have set appropriate email preferences send email in html format, particularly mailtype preference: //you can add more email preferences here $config['mailtype'] = html; $this->email->initialize($config); $link = "www.domain.com/profile...