Verify email in PHP or other programming language?

2019-09-05 06:27发布

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.

3条回答
放荡不羁爱自由
2楼-- · 2019-09-05 06:45

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

查看更多
Emotional °昔
3楼-- · 2019-09-05 06:45

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.

查看更多
贼婆χ
4楼-- · 2019-09-05 06:45

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.

查看更多
登录 后发表回答