使用 codeigniter 4,无法在 gmail 中发送 link
Using codeigniter 4, cannot send link in gmail
$message = "Hi ".$name.", <br>Your account is created successfully. Please click the below link to activate your account
<br><br><a href=".base_url()."/register/activate/".$uniid."Activate now </a>";
我已经收到了邮件,但是href功能被排除了。它只显示
“嗨,我是,
您的帐户创建成功。请点击下方link激活您的账户";
它不显示 link
您的代码中存在语法错误。
- 锚标记中缺少
>
".$uniid."Activate now
- 错误的
href
二语href=".base_url()."/register/activate/".$uniid."
- 用
'
包裹内部条件。
使用下面的代码
$message = "Hi {$name}, <br>Your account is created successfully. Please click the below link to activate your account
<br><br><a href='/register/activate/{$uniid}'>Activate now </a>";
$message = "Hi ".$name.", <br>Your account is created successfully. Please click the below link to activate your account
<br><br><a href=".base_url()."/register/activate/".$uniid."Activate now </a>";
我已经收到了邮件,但是href功能被排除了。它只显示 “嗨,我是, 您的帐户创建成功。请点击下方link激活您的账户";
它不显示 link
您的代码中存在语法错误。
- 锚标记中缺少
>
".$uniid."Activate now
- 错误的
href
二语href=".base_url()."/register/activate/".$uniid."
- 用
'
包裹内部条件。
使用下面的代码
$message = "Hi {$name}, <br>Your account is created successfully. Please click the below link to activate your account
<br><br><a href='/register/activate/{$uniid}'>Activate now </a>";