Checking that the domain exists is easy using the 
CFUSION_VERIFYMAIL(MailServer, SMTPPort, Timeout) function. It'll return a 
Boolean true or false id the mail server exists or not. The second part of 
finding if the user actually exists on the mail server is harder. Many 
(most?) mailservers do not allow this feature as its used by spammers to 
gather addresses. You can use CFX_Socket to do a socket call to the mail 
server in the same way your doing it with Asp (basically). If I saw the Asp 
code you have I could show where what goes.

At 06:10 PM 8/16/01, you wrote:
>Hi all,
>
>I am trying to write a new routine to verify email addresses. I have already
>written a small routine which validates the address for correct syntax.
>However, I want to take it a few steps further.
>
>I found a routine written for ASP
>(http://CoverYourASP.com/ValidateEmail.asp) which not only checks syntax but
>goes so far as to check that the domain exists and that the domain can also
>accept email. The routine also goes one step beyond this and checks the
>mailserver to see if the address actually belongs to any of its registered
>users.
>
>I am pretty sure that I can do the same thing in Cold Fusion but I am up
>against a wall as to how. Also, I want to try and avoid passing anything to
>an ASP page then back to a CF page.
>
>Any ideas out there? Any tutorials on the subject?
>
>Thanks in advance,
>
>Nelson
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to