11.07.2015 Views

Reference Guide - Melissa Data

Reference Guide - Melissa Data

Reference Guide - Melissa Data

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Reference</strong> <strong>Guide</strong>Introduction3. Set the five Email Object options that control the degree to which it will correct and update thesubmitted email address. This sample enables all of the options.CALL SetStandardizeCasing WITH TRUECALL SetCorrectSyntax WITH TRUECALL SetUpdateDomain WITH TRUECALL Set<strong>Data</strong>baseLookup WITH TRUECALL SetFuzzyLookup WITH TRUECALL SetWSLookup WITH TRUECALL SetMXLookup WITH TRUE4. Call the VerifyEmail function. The sample email address will introduce a few errors so the resultswill demonstrate the sort of updating that Email Object is capable of.EmailAddress Is “joHn@@yajoo. con”CALL VerifyEmail WITH EmailAddressCALL GetResults RETURNING ResultsCode5. After calling the VerifyEmail function, check the results code to make sure that there was noproblem with the verification processes. Otherwise, read the object functions to get the verified,corrected, and standardized e-mail address.IF ResultsCode CONTAINS “ES01” THENCALL GetMailBoxName RETURNING MailboxCALL GetDomainName RETURNING DomainCALL GetTopLevelDomain RETURNING TLDCALL GetEmailAddress RETURNING EmailAddressELSEPROCESS ResultsCode FOR ERROR INFORMATIONENDIFThe original email address, ‘joHn@@yajoo. con’, should be returned as john@yahoo.com. In short,the extra “@” was removed by syntax checker. “yajoo” has been replaced by the correct domain name,“yahoo.” The incorrect top-level domain, “ .con,” is now “.com.” Finally, the email address has beenconverted to all lowercase. The GetResults function would return the result codes ES10, ES11, andES12 for those changes, respectively.The GetResults function would return the result codes ES10, ES11, and ES12 for those changes,respectively.3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!