Validate an e-mail address by checking its domain

Discussion in 'PHP' started by astkboy2008, Dec 27, 2009.

  1. #1
    This class can be used to validate an e-mail address by checking its domain.
    It can check a given e-mail address by verifying if it matches a regular expression with a pattern of valid e-mail addresses.
    The class can also check the existence e-mail address domain by opening a connection to a host with the e-mail domain name.
    How to Work?


    • check length of email address max is 320 characters where:1- 64 characters max for the user of email address
      2- 1 character max for the @ 255 characters max for the host name
    • apply regular expressions to valid email addres string
    • check if exist host to send messages to email address

     
    astkboy2008, Dec 27, 2009 IP
  2. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
  3. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #3
    thanks i am already using a similar class in 1 of my scripts.. it prevents fake domains from bieng submitted but then it doesnt stop all emails sometimes people put fake emails which they dont own but they maybe real
     
    Bohra, Dec 27, 2009 IP
  4. creativeGenius

    creativeGenius Well-Known Member

    Messages:
    273
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    120
    #4
    it helps, but people or bot will always find a way around everything.. thanks anyways :)
     
    creativeGenius, Dec 27, 2009 IP
  5. astkboy2008

    astkboy2008 Peon

    Messages:
    211
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    thank you every body
    there is one way to stop people making spaming
    is
    a php class
    its job
    catch any spammer and kill him buy a gun
     
    astkboy2008, Dec 28, 2009 IP