1
我想向新注册的用户发送电子邮件,并且在该电子邮件中,如果用户单击此链接,我将发送带有验证码的链接,然后只有他的帐户将被激活。使用codeigniter发送电子邮件链接
我设法发送电子邮件,但链接只是一个文本,它不作为超链接, 这里是我的代码
$verification_code = "dkeoKUd";
$this->email->from('[email protected]', 'xyz');
$this->email->to($user_email);
$this->email->subject('Email Test');
$link = 'Click on this link - <a http://localhost/Registration_Demo/update_verification_status/update_code='.$verification_code.'>http://localhost/Registration_Demo/update_verification_status/update_code='.$verification_code.'</a>';
$this->email->message($link);
$this->email->send();
而在这个控制器的构造我写
$this->load->library('email');
$this->email->set_mailtype("html");
这是如此愚蠢的错误,谢谢。 – Pramod