Is it possible to check whether an email is a valid email or not?
For checking whether a link is a valid one or not I am checking like this...
URL url = new URL("http://www.google.com");
URLConnection connection = url.openConnection();
if ( connection instanceof HttpURLConnection)
{
HttpURLConnection httpConnection = (HttpURLConnection)connection;
httpConnection.connect();
return httpConnection.getResponseCode();
}
now if its a mialto how do I do it?
URL url = new new URL("mailto:[email protected]");