且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

检查是否电子邮件地址存在

更新时间:2023-11-29 16:00:16

SMTP协议具有接收服务器上的邮箱和的可以的,如果返回一个OKcode命令RCPT该邮箱存在。请注意,有些服务器并不在顺序扫描的有效地址,这样做是为了prevent垃圾邮件发送者。

The SMTP protocol has the command RCPT that receives a mailbox on the server and may return an "ok" code if that mailbox exists. Note that some servers don't do this in order to prevent spammers from scanning for valid addresses.

什么电子邮件无限做的是以下内容:

What email-unlimited do is the following:

  1. 使用电子邮件域查找SMTP服务器
  2. 在开始与SMTP服务器的会话,并给它发送命令RCPT:
  3. 结束会话

如果SMTP服务器在步骤2中返回一个OKcode,然后他们决定信箱存在。

If the SMTP server returns an "ok" code in step 2, then they decide that the mailbox exists.