IsValidModernEmailAddress (open)

Check if an email address is valid in modern times

Syntax

LOADLIB "wh::internet/smtp.whlib";

BOOLEAN FUNCTION IsValidModernEmailAddress(STRING emailaddress)

Parameters

STRING emailaddress

Return value

BOOLEAN

True if the email address would appears to be a well-formed email address to a non-greybeard

Description

An emailcheck must closer to what a browser would do, with additional sanity checks. No attempt to allow all legacy styles supported by the RFCs but 99.9%+ sure to be an error if seen submitted in a form