如何创建“转到邮箱"html页面中的链接 [英] How to create "go to mailbox" link in an html page

查看:41
本文介绍了如何创建“转到邮箱"html页面中的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个确认页面,上面写着一封验证电子邮件已发送到您的邮箱 [foo@bar.com],请点击 <here> 查看您的电子邮件".

问题是如何在<here>创建链接,以便当用户点击它时,它会加载默认的邮件客户端(包括gmail)?

解决方案

我只是从输入的电子邮件中解析域,比如@gmail.com,然后我有一个最流行的电子邮件字典,比如 gmail 它的 mail.google.com.其他人也一样,如果用户的电子邮件不在我的字典中,我只需指向 mail..com 并祈祷它有效.

I am creating a confirmation page that says "a verification email has been sent to your mailbox [foo@bar.com], please click <here> to check your email".

The question is how to create the link at <here> so that when user click on it, it will load default mail client (including gmail)?

解决方案

I simply parse the domain from the input email, like @gmail.com, then I have a dictionary of most popular emails, like for gmail its mail.google.com. Same for others, if the users email is not in my dictionary, I simply point to mail..com and pray it works.

这篇关于如何创建“转到邮箱"html页面中的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆