Concluído

Validate (syntax check) an email address

Implement in Delphi 2010 (or compatible) a function:

Function IsValidEmailAddress(const email : String; const OnlyCommonSyntax : Boolean = True) : Boolean;

The function checks whether the given email address looks like a valid email address. The function must only perform a syntax check, that is, not to test whether the email server exists on the internet or not, for example.

The function must support all the valid email address syntax formats, as defined by the related RFC documents. For more information, please see: [url removed, login to view]

If OnlyCommonSyntax = True, then the function must only return True, if the given email address looks valid but also that it looks like a commonly used email address format. An email address syntax is considered common if the local part has no more than 5 labels AND domain part has no more than 3 labels plus the TLD AND the local part does not have two special characters after each other (special characters such as: .(),:;[]\) AND the local part has no more than 2 different special characters (not counting the "-", "_" and "." characters) AND the local part has no more than 3 special characters in total (not counting the "-", "_" and "." characters) AND the local part does not include the " character AND the domain part is not in ip address format AND domain part has TLD AND domain name is not only TLD.

For more example inputs and outputs, please see the attached file.

Habilidades: Delphi

Veja mais: delphi validate email address format, valid email address syntax, check valid email address delphi, delphi validate email address, check email delphi, valid email syntax, valid email address delphi, delphi validate email function, delphi check email address format, delphi validate email, delphi email address syntax, string c plus plus, not valid email address, not a valid email address, email is not valid, email address not valid, email address is not valid, c plus plus string, common string, valid email

Acerca do Empregador:
( 591 comentários ) Turku, Thailand

ID do Projeto: #4503708

Concedido a:

vano101

Looks like it's something pretty east that can be done in few hours.

$37 USD em 1 dia
(56 Comentários)
4.3