2

Before the client sends a new email, he/she specifies one or more (To) destination addresses. Is there any way to check the validity of these emails before sending the message ?

4

2 回答 2

1

定义“有效性”。

这个JavaMail FAQ 条目可能会有所帮助。

于 2013-10-17T01:59:41.487 回答
0

InternetAddress 类只检查地址的语法。InternetAddress 类无法确定该地址是否作为合法地址实际存在。如果应用程序在防火墙后运行或当前未连接到 Internet,则甚至无法验证主机名。

于 2013-10-17T03:04:03.870 回答