SMTP settings on iphone

Discussion in 'iOS Programming' started by arnieterm, Feb 3, 2009.

  1. arnieterm macrumors regular

    Joined:
    Aug 28, 2008
    #1
    am writing an iphone application which will use smtp classes which will send the emails using the socket programming. So for doing that i need to get the smtp server setting details or specific mail setting details which has been configured in the iPhone device.
    I need to get the following things:
    1). smtp server name
    2). smtp server port
    3). If smtp requires security then
    4). username
    5). password

    Is there any way to read/get those settings(smtp/pop3)? Please help! It's very urgent.
     
  2. jnic macrumors 6502a

    Joined:
    Oct 24, 2008
    Location:
    Cambridge
    #2
    You can't extract them using the SDK (in particular, #5 would be a massive security issue). You'll have to ask the user for them from within your app.
     

Share This Page