Whilst that is good practice for 'user' interactions, it presumes the person adding the email address is the end client and/or system user. If your staff are adding contacts to a system from an incoming email or telephone call, then the 'two factor' thing above is not likely to be well received by the end client.
You would, however, still want to check the base validity of the email address to help prevent typos.
Regards,
Iain
------------------------------
Iain Sharp
Head of Technical Services
Pci Systems Ltd
Sheffield GB
------------------------------
Original Message:
Sent: 01-11-2022 03:40
From: Gianni Sandigliano
Subject: Validate format of address email
Hi Laurent,
Happy to have help you!
Anyhow, please consider this further option about eMail address checking:
It's best practice to test deliverability to any email address. This will establish two important things:
- Whether the email box currently exists
- That the user has access to that email box (and is the legitimate user or owner)
If you build email activation processes into your business process, you don't need to worry about other complicated regular expressions that could be found on the internet.
Best Regards,
Gianni
------------------------------
Gianni Sandigliano
IT
Original Message:
Sent: 01-11-2022 03:12
From: Laurent Merot
Subject: Validate format of address email
Hi Gianni,
It works very well !
And with (-) before or after the @ in this check, we can also authorize draws in the syntax.
Tks a lot, have a good day.
------------------------------
Laurent Merot
Rocket Forum Shared Account
Original Message:
Sent: 01-11-2022 02:38
From: Gianni Sandigliano
Subject: Validate format of address email
Hi Laurent,
AFAIK a basic eMail address pattern checking requires:
- 1 to N characters
- a mandatory "@"
- 1 to N characters
- a mandatory "."
- 1 to N characters
Probably an acceptable $syntax is:
~@~@*%@~@~@*%.~@~@*
but I am sure someone else will help you with a better solution!
:-) :-) :-)
Regards,
Gianni
------------------------------
Gianni Sandigliano
IT
Original Message:
Sent: 01-11-2022 02:10
From: Laurent Merot
Subject: Validate format of address email
Hi,
Is there a Uniface function that checks if a string is a valide email address ?
If not, is there a simple to do it with the match pattern ? We use it to successfully to check if a field is numeric with :
If (MyString != '(-)#*(.)#*') Message/info "Non numeric value",
but I can't find how to ckeck if MyString contains only authorized character with @ in middle and .fr or .com or any other else at the end.
Thanks for adcance.
Laurent.
------------------------------
Laurent Merot
Rocket Forum Shared Account
------------------------------