org.hackystat.utilities.email
Class ValidateEmailSyntax

java.lang.Object
  extended by org.hackystat.utilities.email.ValidateEmailSyntax

public final class ValidateEmailSyntax
extends java.lang.Object

Validate syntax of email addresses. Does not probe to see if mailserver exists in DNS or online. See MailProber for that. See ValidateEmailFile for an example of how to use this class. Minor reformatting. Found in: http://www.velocityreviews.com/forums/ t128486-re-can-javamail-detect-a-nonexistant-email-address.html

Version:
1.0 to do: check validity of & in first part of email address. Appears in practice.
Author:
Roedy Green, Canadian Mind Products, Philip Johnson.

Method Summary
static boolean isValid(java.lang.String email)
          Returns true if the email appears to be valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isValid

public static boolean isValid(java.lang.String email)
Returns true if the email appears to be valid.

Parameters:
email - The email address of interest.
Returns:
True if it appears to be valid.