Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-02-2012, 06:39 PM   #1 (permalink)
Registered Member
 
Join Date: Aug 2009
Posts: 125
CAmaninacan is on a distinguished road
Default Check to see if email is legit?

Hello, I am curious if their is a way to test to see if a email is legit and it's not mistyped wrong. I am thinking about using NSRange to check if their is a @ symbol and a .com/biz/net/etc. I would love to hear any other suggestions some of you may have.
CAmaninacan is offline   Reply With Quote
Old 02-02-2012, 07:07 PM   #2 (permalink)
Just helping out.
 
Domele's Avatar
 
Join Date: Feb 2011
Posts: 2,565
Domele is on a distinguished road
Default

objective c - Check that an email address is valid on iOS - Stack Overflow
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.

New app - See screenshots and details at www.globaclock.com.

If you want to thank me, click the link. Every click counts. If you want to do more, buy my app. A link is available on my website. Thanks.
Domele is offline   Reply With Quote
Old 02-02-2012, 07:07 PM   #3 (permalink)
Registered Member
 
Join Date: Jan 2011
Location: South Florida, US
Posts: 357
lgehrig1 is on a distinguished road
Default

Quote:
Originally Posted by CAmaninacan View Post
Hello, I am curious if their is a way to test to see if a email is legit and it's not mistyped wrong. I am thinking about using NSRange to check if their is a @ symbol and a .com/biz/net/etc. I would love to hear any other suggestions some of you may have.
You could do a DNS lookup to find out if the domain has an MX record - if it does then anything after the "@" is good. You cannot know about the before except by requiring the user to respond in some fashion to an email you send - barring cases where the service exposes profiles (e.g. Yahoo profiles).
lgehrig1 is offline   Reply With Quote
Old 02-02-2012, 08:10 PM   #4 (permalink)
Registered Member
 
Join Date: Dec 2010
Location: Seattle, WA
Posts: 408
RickSDK is on a distinguished road
Default

personally I don't see a lot of value in doing anything more than making sure the field is not blank.

If the user is initent on entering a junk email address, then forcing them to enter a junk address with an @ sign in it seems pretty meaningless to me.
__________________
Check out my apps

RickSDK is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 404
17 members and 387 guests
Atatator, chiataytuday, dre, FrankWeller, imac74, ipodphone, jeroenkeij, kukat, LunarMoon, MAMN84, n00b, QuantumDoja, reficul, Retouchable, Sami Gh, tim0504, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,675
Threads: 94,124
Posts: 402,909
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Retouchable
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:09 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0