Verify email in PHP or other programming language?

こ雲淡風輕ζ 提交于 2019-12-25 03:08:45

问题


How can i make a script like verify-email.org ? I told in the school, that this is not a problem. But now, I searched the web, and found nothing?

E.g. test123@hotmail.com

  • I don't want only check if the domain exist of the E-Mail address. I want check, the whole E-Mail, if it exists on Hotmail.com?

Thanks.


回答1:


You can't. You have to send an email and wait for an answer to verify that this address exists.




回答2:


The only clear way to check an email address is valid is to send it an email. If it isn't valid you will get an undelivered response.




回答3:


Like my predecessors wrote, you can only completely veryfiy by sending a mail to the address.

However, you could use DNS to check if the domain exists and a MX (Mail Exchange) record is associated with it. It's not a complete solution, but maybe a step that brings you a little further.



来源:https://stackoverflow.com/questions/6733138/verify-email-in-php-or-other-programming-language

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!