是否可以检查电子邮件是否为有效电子邮件?
为了检查链接是否有效,我正在检查这样...
URL url = 新 URL(" http://www.google.com ");
URLConnection 连接 = url.openConnection();
if ( connection instanceof HttpURLConnection)
{
HttpURLConnection httpConnection = (HttpURLConnection)connection;
httpConnection.connect();
return httpConnection.getResponseCode();
}
现在,如果它是 mialto,我该怎么做?
URL url = 新的新 URL("mailto:someone@gmail.com");