Urgent: PHP Email Validation

  • sevster
  • Bronze Member
  • Bronze Member
  • User avatar
  • Joined: Jun 17, 2005
  • Posts: 518
  • Status: Offline

Post April 4th, 2008, 11:40 am

What is the best way to validate an email address being submitted in a form?

I already have the javascript portion of it for syntactical purposes.

Now I need to know how I can validate the email actually exists or not. SMTP validation I assume, but from what I read, that's a very slow process.

Any suggestions?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post April 4th, 2008, 11:40 am

  • sevster
  • Bronze Member
  • Bronze Member
  • User avatar
  • Joined: Jun 17, 2005
  • Posts: 518
  • Status: Offline

Post April 4th, 2008, 1:18 pm

Quite urgent...any help please?
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Sep 10, 2004
  • Posts: 2194
  • Loc: Canada
  • Status: Offline

Post April 4th, 2008, 1:33 pm

Why do you need to validate it exists?
Can't you simply preg_match to validate it's a real email address?
  • sevster
  • Bronze Member
  • Bronze Member
  • User avatar
  • Joined: Jun 17, 2005
  • Posts: 518
  • Status: Offline

Post April 4th, 2008, 1:36 pm

if you preg_match, all it does it validates the format, so a alsdjfalks12313212@yahoo.com would do just fine.

I'm getting random emails from random people with BS information on the forms...I need to stop that from happening.
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Sep 10, 2004
  • Posts: 2194
  • Loc: Canada
  • Status: Offline

Post April 4th, 2008, 1:41 pm

What about a CAPTCHA?
  • sevster
  • Bronze Member
  • Bronze Member
  • User avatar
  • Joined: Jun 17, 2005
  • Posts: 518
  • Status: Offline

Post April 4th, 2008, 1:43 pm

Yeah, that might be the best way to go.

If there are any other suggestions, please let me know. Or else, I'll go with the Captcha idea.

Thanks
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Sep 10, 2004
  • Posts: 2194
  • Loc: Canada
  • Status: Offline

Post April 4th, 2008, 1:47 pm

You could require them to reply to an email before the message is sent?
  • sevster
  • Bronze Member
  • Bronze Member
  • User avatar
  • Joined: Jun 17, 2005
  • Posts: 518
  • Status: Offline

Post April 4th, 2008, 1:52 pm

Can't do that because of the fact that the forms are for anonymous people, not required to join or be a member or anything like that.

Captcha is it I think.

Thanks again.
  • cjxxi
  • Expert
  • Expert
  • No Avatar
  • Joined: Aug 02, 2004
  • Posts: 564
  • Loc: Fort Worth, TX
  • Status: Offline

Post April 4th, 2008, 4:42 pm

yes , there is a way.....
networklatino.com
-----------------------------------
  • cjxxi
  • Expert
  • Expert
  • No Avatar
  • Joined: Aug 02, 2004
  • Posts: 564
  • Loc: Fort Worth, TX
  • Status: Offline

Post April 4th, 2008, 4:46 pm

how ever there is no warranty that the email belongs to that person, so in other words it is impossible to ensure that email is really valid
networklatino.com
-----------------------------------
  • sevster
  • Bronze Member
  • Bronze Member
  • User avatar
  • Joined: Jun 17, 2005
  • Posts: 518
  • Status: Offline

Post April 4th, 2008, 5:32 pm

So what is the way?
  • cjxxi
  • Expert
  • Expert
  • No Avatar
  • Joined: Aug 02, 2004
  • Posts: 564
  • Loc: Fort Worth, TX
  • Status: Offline

Post April 4th, 2008, 9:17 pm

man it took me so long come this script.. i am willing to sell it for 50 bucks. if you want it. By paypal.
networklatino.com
-----------------------------------
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Sep 10, 2004
  • Posts: 2194
  • Loc: Canada
  • Status: Offline

Post April 4th, 2008, 9:41 pm

lol
That doesn't sound very community friendly :P
  • cjxxi
  • Expert
  • Expert
  • No Avatar
  • Joined: Aug 02, 2004
  • Posts: 564
  • Loc: Fort Worth, TX
  • Status: Offline

Post April 4th, 2008, 9:50 pm

neksus wrote:
lol
That doesn't sound very community friendly :P


I know. but the commutity is one... and the budget is another.. meaning where ever you are you still eay, and pay for stuff.. so many hours of work are more than worth it. so do I. I apologizy if you miss understand the concept.
networklatino.com
-----------------------------------
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Sep 10, 2004
  • Posts: 2194
  • Loc: Canada
  • Status: Offline

Post April 5th, 2008, 8:11 am

I understand the concept, but I can't see how something this simple can be thousands of lines of code. Granted some of the most powerful lines are only 2-300 characters...
Check this page out...
It utilizes the
Code: [ Select ]
getmxrr()
command, which verifies whether the domain has the ability to send and receive mail. The php.net resource says it shouldn't be used, but it presents a loophole for its logic.

That was found on the first page of "possible to validate an email exists in php?".
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post April 5th, 2008, 8:11 am

Post Information

  • Total Posts in this topic: 20 posts
  • Users browsing this forum: No registered users and 189 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.