我如何理解电子邮件是否有效? [英] How Can I Understand That Email Is Valid?
本文介绍了我如何理解电子邮件是否有效?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎么能理解电子邮件是有效的?
我的porpouse是:
当我想在网站上注册管理员如何理解我的电子邮件是有效的?
是否清楚?
解决方案
电子邮件地址非常容易验证;这些规则都非常明确地指定,并且有大量的正则表达用于检查它们: GoogleRegex email PHP [ ^ ]会找到你的负载。
但是......这并不意味着它是真实的 电子邮件地址,或者任何人都会读取发送给它的内容。
检查的唯一方法是发送需要回复的电子邮件,并确保获得回复。这意味着当您发送电子邮件时,电子邮件地址是有效的 - 例如,那里有提供电子邮件ID的网站,例如,持续十分钟!
PHP有一个FILTER_VALIDATE_EMAIL过滤器。
有关详细信息,请访问 http://www.w3schools.com/php/filter_validate_email .asp [ ^ ]。
how can i understand that email is valid?
my porpouse is :
when i want to register in a site how the admin understand that my email is valid?
is clear?
解决方案
Email addresses are pretty easy to validate; the rules are all specified pretty clearly, and there are a large number of regexes for checking them: Google "Regex email PHP"[^] will find you loads.
But...that doesn't mean it's a "real" email address, or that anyone reads what is sent to it if it is.
The only way to check is to send an email which requires a response, and make sure you get it. And that means that the email address was valid when you sent the email, no more - there are web sites out there offering email ID's that last ten minutes, for example!
PHP has a FILTER_VALIDATE_EMAIL filter.
More details are available at http://www.w3schools.com/php/filter_validate_email.asp[^].
这篇关于我如何理解电子邮件是否有效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文