Appearance
IsEmailValid
Declaration
Function IsEmailValid( const aValue : string) : boolean;
Example
pascal
procedure OnMapEvent(var Value:Variant);
begin
if Not IsEmailValid(EmailField.Value) then
LogError('The email is not valid')
else
Value := EmailField.Value;
end;Description
Checks aValue to determine if it is a valid email address. It does not check that the email box exists on the destination host name but simply that the format of the address is correct. Even though this might return True it does not mean that the email address is active.
Given the example if testemail@flow.net.nz was provided to the function it would return True, however testemail@flow.net.nz is not actually a valid email address at that domain. It simply indicates that the email is of the correct format and has no funny characters or missing domain names etc.