info.mailtraq.com > Management > Script Functions A-Z > HostOf() HostOf()Extracts the domain portion of an email address. If the input address string does not contain a domain, LOCALHOST is returned.
output := HostOf( string )
- string
- The address string from which a domain name is to be extracted
- output
- The extracted domain name as a string
//Example usage
"home.example.com" := HostOf("fred@home.example.com")
// If LOCALHOST is test.invalid
"test.invalid" := HostOf("fred") |