IsEmailAddressInternal

Checks if the email address is part of the internal domains.

javascript · Common Scripts

Details

IDIsEmailAddressInternal
Languagejavascript
From Version5.0.0
Tagsemail

README

Checks if the email address is part of the internal domain.

Script Data


Name Description
Script Type javascript
Tags email

Inputs


Argument Name Description
email The email address to check.
domain The list of internal domains to check. (comma-separated)
include_subdomains Whether to include the subdomains of the domain list.

Outputs


Path Description Type
Account.Email.Address The email accounts full address. string
Account.Email.Username The email accounts username. string
Account.Email.Domain The email accounts domain. string
Account.Email.NetworkType The eil account NetworkType. Can be, “Internal” or “External”. string
commonfields:
  id: IsEmailAddressInternal
  version: -1
name: IsEmailAddressInternal
script: ''
type: javascript
tags:
- email
comment: Checks if the email address is part of the internal domains.
enabled: true
args:
- name: email
  required: true
  default: true
  description: The email address to check.
  isArray: true
- name: domain
  description: List of internal domains to check, comma separated.
  isArray: true
- name: include_subdomains
  auto: PREDEFINED
  predefined:
  - "yes"
  - "no"
  description: Include subdomains of the domain list?
  defaultValue: "no"
outputs:
- contextPath: Account.Email.Address
  description: The Email account full address.
  type: string
- contextPath: Account.Email.Username
  description: The Email account username.
  type: string
- contextPath: Account.Email.Domain
  description: The Email account domain.
  type: string
- contextPath: Account.Email.NetworkType
  description: The Email account NetworkType (could be Internal/External).
  type: string
scripttarget: 0
fromversion: 5.0.0
tests:
- IsEmailAddressInternal_Test
- TestIsEmailAddressInternal