IsEmailAddress()

Tests whether an email address is well formed.

This function isn’t designed to test whether an email address or domain actually exists. It only tests the supplied email address to determine whether it’s structurally valid.

The IsEmailAddress() function has one parameter:

  • emailAddress (String): Required. An email address.

This example checks to see if the email address tomas.santos@example.org is valid.

The example returns a result of true.

This table shows several function calls and the result of each one.

FunctionResultNotes
IsEmailAddress("pooja.chatterjee@example.com")true
IsEmailAddress("pooja.chaterjee@example")trueIt's technically possible, although rare, to have an email domain that doesn’t include a top-level domain such as .com.
IsEmailAddress("pooja.chatterjeeexample.com")falseThis example is missing an at sign (@), making it invalid.
IsEmailAddress("pooja@chatterjee@example.com")falseThis example includes two at signs, making it invalid.
IsEmailAddress("@example.com")falseThis example is missing the local part (the part of the address that comes before the at sign), making it invalid.
IsEmailAddress("pooja.chatterjee@.com")falseThis example is missing a second-level domain, but includes a top-level domain.