Package org.subethamail.smtp.util
Class EmailUtils
java.lang.Object
org.subethamail.smtp.util.EmailUtils
- Author:
- Jeff Schnitzer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringextractEmailAddress(String args, int offset) Extracts the email address within braces after a specified offset.static booleanisValidEmailAddress(String address) static StringnormalizeEmail(String email) Normalize the domain-part to lowercase.
-
Constructor Details
-
EmailUtils
public EmailUtils()
-
-
Method Details
-
isValidEmailAddress
- Returns:
- true if the string is a valid email address
-
extractEmailAddress
Extracts the email address within braces after a specified offset. -
normalizeEmail
Normalize the domain-part to lowercase. If email address is missing an '@' the email is returned as-is.
-