验证电子邮件域存在 [英] Verify that email domain exists

查看:164
本文介绍了验证电子邮件域存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁检查电子邮件地址的域名作为其验证步骤的一部分?例如。确认,如果用户指定blah@gmail.com作为其地址gmail.com存在

Does anyone check the domain of an email address as part of their verification steps? eg. Confirm that gmail.com exists if the user specified blah@gmail.com as their address.

我要指出,在我的web应用程序的现有用户可以转发邀请他们的朋友。我有没有必要在所有核实这些邀请。相反,我只是想提醒我的用户如果输入错误等可发送邀请错了人。这是值得的,即使做?

I should note that in my webapp an existing user can forward invites to their friends. I have no need to verify those invites at all. Rather, I just want to warn my user if a typo etc. may be sending an invite to the wrong person. Is this even worthwhile to do?

推荐答案

您可以做的 MX记录。以下是在code项目的例子:结果
HTTP://www.$c$cproject.com/KB/IP/dnslookupdotnet的.aspx

You could do a dns lookup on the mx record. Here's an example at Code Project:
http://www.codeproject.com/KB/IP/dnslookupdotnet.aspx

这应该回答你的问题问的,但作为一个方面说明我@Franci同意发送验证消息的旧的备用更好。如果有人做傻瓜您的验证一切吧,你真的不买多少也中检查域。

That should answer your question as asked, but as a side note I agree with @Franci that the old standby of sending a verification message is better. If someone's done everything else right to fool your validation, you're really not buying much in also checking the domain.

这篇关于验证电子邮件域存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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