PDA

View Full Version : SMTP settings on iphone




arnieterm
Feb 3, 2009, 08:33 AM
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.



jnic
Feb 3, 2009, 08:37 AM
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.