Brian Dunning's FileMaker Custom Functions

IsValidEmail ( theEmail )

Determines if a supplied email address is valid or not

  Average rating: 3.6 (68 votes) Log in to vote

Paul Turnbull   Paul Turnbull
One of Me
http://www.oneofme.ca

Share on Facebook Share on Twitter

  Sample input:
IsValidEmail ( "joe@blah.com" )
  Sample output:
1

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Takes a text string a checks to see if it is a valid email address. Includes a value list of over 260 Top Level Domains that are checked against. If the string is not a valid address it returns an explanation of the why the test failed.

Will not handle urls in the form "contact@domain.com/some.name" although you could edit to handle this if you like.

Edited 11/13/05 - fixed bugs.

 

Comments

Benka   Benka, Rennes, France
Jun 3, 2009
Hello Paul,

Thank you for the function.

Little bug :

ééééé@text.com return true

text text@text.com return true

text@text.com-- return true
 
Benka   Benka, Rennes, France
Jun 3, 2009
text @text.com return true
 
Jamie Thompson, Computech IT Services Ltd.   Jamie Thompson, Computech IT Services Ltd., Plymouth, UK
Mar 10, 2011
Great function. However, he ampersand (&) is a valid character in an email address.
 
Marc   Marc, San Diego, CA
Mar 11, 2011
Naming the function "IsValidEmail" in FileMaker 11 conflicts with an internal existing function name.

Maybe rename to "IsThisValidEmail"?
Anyway, thank you and I like this function very much.
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.