我正在尝试使用 Codeigniter 向用户发送确认注册电子邮件。我需要发送一个验证链接,但它在.com等协议之前存在点号问题。我试图在com之前删除点号“ 。 ”它可以正常工作。请在下面查看我的代码:
$config['mailtype'] = 'html';
$config['protocol'] = 'sendmail';
$config['mailpath'] = '/usr/sbin/sendmail';
$config['charset'] = 'utf-8';
$config['wordwrap'] = TRUE;
$this->email->initialize($config);
$this->email->to($email);
$this->email->from('info@mymail.com');
$this->email->subject('Mail Confirm');
$message = "<p>Thanks for registration and you have successfuly register.</p>";
$message .= "<p>Please click link here to confirm your registration.</p>";
//Here is my problem
$message .= "<a href='http://www.mywebsite.com/job_pages/active?code=".$code."' >test</a>";
$this->email->message($message);