DomainFromEmailAddress static method
Implementation
static String DomainFromEmailAddress(String emailAddress) {
List<String> emailAddressParts = emailAddress.split('@');
if (emailAddressParts.length != 2 ||
StringUtils.IsNullOrEmpty(emailAddressParts[1])) {
throw new FormatException("Strings.InvalidEmailAddress");
}
return emailAddressParts[1];
}