Yakov
Yakov

Reputation: 318

How can I get user's email? iPhone SDK

I need to get an user's email address that used in Mail.app.

How can I do it with the iPhone SDK?

Thank you!

Upvotes: 4

Views: 5180

Answers (3)

Roi1981
Roi1981

Reputation: 33

welcome to IOS, just assume that you are not allowed to do anything that is related to the private user info ( email address \ phone number )

another workaround is to save the user phone number and email address in the address book and get that from there

Upvotes: 1

0xced
0xced

Reputation: 26468

Have a look at ABGetMe for iOS. Specifically, the AccountEmailAddresses function returns the list of configured e-mail addresses.

Upvotes: 2

Luke Redpath
Luke Redpath

Reputation: 10555

Short answer: you can't. You should prompt the user for their email address if you need it.

Upvotes: 5

Related Questions