Get default user email in iOS Device

Jeremy Grenier picture Jeremy Grenier · May 25, 2012 · Viewed 8.8k times · Source

Is it possible to retrieve the user email associated with the default email account directly from an app?

Screenshot:

enter image description here

Thanks.

Answer

woz picture woz · May 25, 2012

I can't prove a negative, but I am fairly certain this is not possible. You can use MFMailComposeViewController to allow the user to send an email from the default account, but you cannot directly access information about the default account. If you need the user's email address, you either have to ask for them to type it in, or have them select it from their contacts.