Results 1 to 4 of 4

Thread: JavaScript -- Validating an email address

  1. #1

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    JavaScript -- Validating an email address

    Is there a way that you can validate an email address entered by checking to see if it exists?

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: JavaScript -- Validating an email address

    No, not from JavaScript. Once you're on the server side, you can contact the mail server and see if it rejects mail to that address, but that's not 100% reliable either, because many mail servers (qmail and MS Exchange in particular) don't check existence of recipients during the SMTP exchange.

    If the address entered belongs to the guy who enters it, it might be warranted to send a confirmation mail, just as this forum does. Again, though, that's server-side stuff.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Re: JavaScript -- Validating an email address

    Thanks CB. Do you think the server side stuff is best left to servlets or jsp or would a server side version of javascript be just as suitable?

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: JavaScript -- Validating an email address

    That depends on your server, and what technology you're familiar with. Netscape Server supports (or rather supported) server-side JavaScript, and ASP can be scripted with JScript, but neither is an attractive choice.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width