Hi
I have an application that scans a table populated with email addresses it all works fine but the occansional error comes up because of an invalid email address('error in fox') also, some emails do not get sent once they have been placed in outlooks outbox because of the email address. The validation i am using is :
Could anyone tell be if there is anything i am not checking also, is it possible to check that the domain excists without actually sending the email. Some mentioned to me using PING but am not sure what this is.
Your help and advise is appreciated in advance
Many Thanks
Nick
I have an application that scans a table populated with email addresses it all works fine but the occansional error comes up because of an invalid email address('error in fox') also, some emails do not get sent once they have been placed in outlooks outbox because of the email address. The validation i am using is :
Code:
IF AT(" ", ALLTRIM(SENDTO.EMAIL)) > 0 OR ;
AT("#", ALLTRIM(SENDTO.EMAIL)) > 0 OR ;
AT("/",EMAIL) > 0 OR ;
AT(";",EMAIL) > 0 OR ;
AT(",",EMAIL) > 0 OR ;
AT(":",EMAIL) > 0 OR ;
AT("..",EMAIL) > 0 OR ;
SUBSTR(SENDTO.EMAIL, LNLEN, 1) = "." OR ;
AT("@",EMAIL) = 0 OR ;
AT("@",EMAIL, 2) > 0
SCATTER TO laerrors
INSERT INTO ERRORS FROM ARRAY laerrors
DELETE
LNCOUNT = LNCOUNT + 1
ENDIF
Could anyone tell be if there is anything i am not checking also, is it possible to check that the domain excists without actually sending the email. Some mentioned to me using PING but am not sure what this is.
Your help and advise is appreciated in advance
Many Thanks
Nick