PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD14] EmailCheckAddress
[WD14] EmailCheckAddress
Iniciado por guest, 24,sep. 2015 11:35 - 2 respuestas
Publicado el 24,septiembre 2015 - 11:35
Hi,

I use EmailCheckAddress(sEmailadresse, emailValidateSyntax) to verify the adresses.

I get some errors for emailadresses like GP_AFP@schuessler-plan.de (which is correct)

Is this an bug ??
Publicado el 29,septiembre 2015 - 19:04
Hi Michael,
Using the bellow code in WD14 the result is emailAddressIncorrectSyntax
Using the bellow code in WD18 the result is emailAddressValid

SWITCH EmailCheckAddress("GP_AFP@schuessler-plan.de",emailValidateSyntax)
CASE emailAddressValid
Info("Valid address")
CASE emailAddressIncorrectSyntax
Info("The syntax of the address is invalid.")
CASE emailAddressRefused
Info("The address was refused by the email server. " + ...
"ErrorInfo returns the reason for the refusal.")
CASE emailAddressError
Info("An error occurred during the check. " + ...
"ErrorInfo returns the details of the error.")
OTHER CASE
Info("Undefined case")
END
Publicado el 30,septiembre 2015 - 08:39
Hi Paulo,

I solved this already with my own regular expression. EmailCheckAddress in WD14 (and the regular expression example for checking Email-Adresses) in WD14 is wrong because the "_" character in the adress is marked as failure. Thats not true.