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

时间:2022-03-20 19:43:35

I am sending email from server for password reset purpose. For test purpose I'm sending to gmail and yahoo mail. The mail delivery to the gmail and yahoo mail both but the return link is missing for gmail and in yahoo shows garbage in the <a> tag.

我正在从服务器发送电子邮件以进行密码重置。出于测试目的,我发送到gmail和yahoo邮件。邮件传递到gmail和yahoo邮件,但是gmail和yahoo中的返回链接缺失,显示标签中的垃圾。

I am sending

我发送

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

In gmail, it is showing

在gmail中,它正在显示

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

Need help please.

需要帮助。

2 个解决方案

#1


You need http protocol in the href value. Otherwise gmail will not consider that as valid link

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

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

#2


Problem:

URL you are providing is not correct, it suggests localhost is a folder, yet you are providing port number.

您提供的URL不正确,它建议localhost是一个文件夹,但您提供的是端口号。

You are missing the protocol (http / https):

您缺少协议(http / https):

<a href="http://localhost:4778/ResetRequest?id=25fafb03-9715-4003-80bf-e362259afa77">

#1


You need http protocol in the href value. Otherwise gmail will not consider that as valid link

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

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

#2


Problem:

URL you are providing is not correct, it suggests localhost is a folder, yet you are providing port number.

您提供的URL不正确,它建议localhost是一个文件夹,但您提供的是端口号。

You are missing the protocol (http / https):

您缺少协议(http / https):

<a href="http://localhost:4778/ResetRequest?id=25fafb03-9715-4003-80bf-e362259afa77">