internet.email

Generates random email addresses with optional domain filtering. Email addresses consist of a randomly generated local part (3-20 characters) and a domain from either a custom list or safe defaults.

Keywords

domainsoptional

An array of domain names to use for email generation. Each domain must be a non-empty string. When not specified, defaults to RFC 2606 reserved domains: example.com and example.org.

Behavior

The generated local part (before the @ symbol):

  • Contains lowercase letters (a-z) and numbers (0-9)
  • May include dots (.) and underscores (_) as separators
  • Always starts and ends with an alphanumeric character
  • Has a length between 3 and 20 characters

Values are not guaranteed to be unique.

Examples

Using default domains:

{
  "type": "internet.email"
}

Example outputs:

  • abc123@example.com
  • jane.doe@example.org
  • user_42@example.com

Using custom domains:

{
  "type": "internet.email",
  "domains": ["company.org", "startup.io", "test.net"]
}

Example outputs:

  • john.smith@company.org
  • dev123@startup.io
  • test_user@test.net

Using a single corporate domain:

{
  "type": "internet.email",
  "domains": ["acme.com"]
}