import mails into app

Discussion in 'iOS Programming' started by grandM, Feb 6, 2016.

  1. grandM macrumors 6502a

    grandM

    Joined:
    Oct 14, 2013
    #1
    Does somebody have a clue if you can import a mail from Mail or Outlook mail into your own app?
     
  2. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #2
    If you get the credentials, then you can access the same servers that they do. Mail and Outlook are just client apps - they don't produce their own content, they just ask the server for it.

    Without the credentials, no.

    (Of course, you'll need to know the protocol and stuff too. MailCore is a library you can use which handles POP and IMAP. That covers most servers. Exchange is another common one. IBM Notes is a less common one. I'm sure there are many other less common ones.)
     
  3. grandM thread starter macrumors 6502a

    grandM

    Joined:
    Oct 14, 2013
    #3
    In that case I would of course be downloading all the mails. I only want to export some mails from mail or Exchange and import them into my app? Is this feasible?

    By the way when you talk about credentials. I suppose only large companies get access to the servers of Microsoft and apple?
     
  4. AxoNeuron macrumors 65816

    AxoNeuron

    Joined:
    Apr 22, 2012
    Location:
    The Left Coast
    #4
    I love your posts man but you realllllly need to use Google for some of these questions lol, no offense intended.

    You can't import mail directly from another app as far as I'm aware of, however you could build an app that is compliant with the IMAP & POP email standards and get the mail directly from the mail servers. It would be quite an undertaking though.
     
  5. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #5
    No. You need the username, password, protocol, port number, and address for the server. The size of the organization has nothing to do with whether you can access it or not. You'll definitely need to ask the user for their username, password, and who the mall provider is. You can probably just have a database with the protocols, port numbers, and addresses of the most common mail providers (gmail, iCloud, yahoo, etc).

    If you go into Settings > Mail > (pick a mail account) and dig around, you can find all of the above info... At least for some account types. I couldn't find the info for my iCloud account. Apple probably just hard coded the port number and address and protocol so that you can't break the account by changing those settings.
     
  6. grandM thread starter macrumors 6502a

    grandM

    Joined:
    Oct 14, 2013
    #6
    Oh this is great. So basically you could go through all the mails on the imap server and import the mails from a certain person?
    --- Post Merged, Feb 8, 2016 ---
    lol the worst part is that I usually post these questions after having looked at google for an hour or so. I guess I must be the worst googler in the world ever born =D
     

Share This Page