Focal Point
[NFR] Email Address Verification

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1827031036

April 12, 2013, 09:01 AM
Doug
[NFR] Email Address Verification
I couldn't find anything here about verifying email addresses… So, here I am turning to the experts:

I, maybe we all, need a way to verify email addresses BEFORE they are included in a dynamic distribution list (DDL)for ReportCaster jobs. ReportCaster jobs do fail due to invalid email addresses in the associated DDL, and rightfully so. So, I'm looking for a way to validate email addresses, ..."sort of link checking the return code of a "ping" to a URL (if that's possible), before adding them in the DDL.

Is there such a methodology available within a fex? Or, is this a NFR?

This message has been edited. Last edited by: Doug,




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
April 13, 2013, 09:00 AM
Alex
Email addresses must have an [something] then a '@' and [something] and cannot contain spaces. You could set up a DEFINE to test the Email Address field to insure it meets these minimums.
 
DEFINE FILE EMAILLIST
TEST1/A1 = IF EMAIL_ADDRESS CONTAINS '@' THEN 'Y' ELSE 'N';
TEST1/A1 = IF EMAIL_ADDRESS CONTAINS '' THEN 'N' ELSE 'Y';
TEST3/A1 = Add other tests that you may require;
VALID/A1 = IF (TEST1 EQ 'Y') AND (TEST2 EQ 'Y') THEN 'Y' ELSE 'N';
END
 

Then add a WHERE clause to your code.
WHERE VALID EQ 'Y';

If you need to test for every element of the email address to validate it then look up RFC 2822. This is the standard by which email addresses must be structured to be valid. Or you can set up a validation test before your addresses are added to your DB.


WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
April 15, 2013, 01:35 PM
Doug
That's OK for checking the synatx / format of the email address. However, I need to know if it's a valid email address recipient: smtp, etc.

As mentioned above: ..."sort of link checking the return code of a "ping" to a URL"...
April 16, 2013, 07:16 AM
Alex
I doubt there's a way for you to check for that kind of validity on the fly. You can ping a domain using a DOS or UNIX command and get the reply data returned. Pinging an email address returns a host not found message.


WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
April 19, 2013, 05:57 PM
Doug
Unfortunately that wouldn't work for my application as I'm sure the domain is always there: DollarGeneral.com, and I'm in that domain. Smiler
April 20, 2013, 07:02 AM
Alex
You can use EDAMAIL to send a test message to check that an email address is correct. Search the forum for "EDAMAIL". There are several good posts on the subject.


WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
April 21, 2013, 09:35 AM
Twanette
The EDAMAIL mechanism sounds like a pragmatic "internal" approach.
It is also "technically" possible without sending and email address. We met with a company here in South Africa recently that say that they do it as part of their address validation processes.
Via a web service one could possibly look at http://www.briteverify.com/


WebFOCUS 8.2.06 mostly Windows Server
May 02, 2013, 03:38 PM
Doug
I do like "BriteVerify". But, I'd rather keep it in-house. I'll probably use a list (from HR?) with an "IN FILE"...