php - 为什么超链接在发送密码重置邮件后不显示/在 gmail 中工作?

标签 php html email model-view-controller

我正在发送 email从服务器用于密码重置目的。出于测试目的,我发送到 gmailyahoo mail .邮件投递到gmailyahoo mail除了return linkmissing对于 gmailyahoo显示garbage<a>标签。

我要发送

Click here to change your password <a href="localhost:4778/ResetRequest?id=25fafb03-9715-4003-80bf-e362259afa77">please click this link</a>

在gmail中,它显示

It is clearly showing the <a> tag is empty which suppose to contain the href link.

需要帮助。

最佳答案

您需要在 href 值中使用 http 协议(protocol)。否则 gmail 不会将其视为有效链接

<a href="http://localhost:4778/">Some link</a>

关于php - 为什么超链接在发送密码重置邮件后不显示/在 gmail 中工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30189487/

相关文章:

php - 如何从php mysql中删除html表单中的数据

php - 使用 PHP 和 MySQL 进行搜索过滤

php - 从 mysql 构建数组,并插入 fputcsv 的值

php - 如何使用 Mysql 数据填充 Bootstrap 布局?

javascript - 允许用户在没有提交按钮的情况下在 x 文件夹 chrome 扩展上上传图像

html - target=_blank 时 mailto 链接无法加载

javascript - 如何根据发送者的身份使新消息显示在左侧/右侧? (无 float )

html - <br 风格 ="page-break-after: always"> 不工作 Windows 8/8.1

email - 发送电子邮件的批处理脚本

Android:电子邮件 'to ' 字段为空