4

Is it possible to configure a 3rd party email account in Android programmatically. Is there any API for this?

Basically I am trying to create an app that would:

  1. ask the user for email address and password
  2. Verify the credentials. If everything is fine, the email account is automatically configured with the incoming and outgoing mail server details

The issue is that users don't find it easy remembering the server details etc.And our aim is to help our users set up their email accounts on their devices

ambit
  • 1,099
  • 2
  • 28
  • 43

1 Answers1

1

If it's a popular provider such as gmail, hotmail, aol etc then you will be able to do this but individual mail servers such as company emails etc have their own configurations and such which can be difficult to gauge programmatically.

As for how to implement a mail client, you can check out the source code for K9 mail. It is an excellent open source, full functional email client for android. It supports POP3, IMAP and Exchange accounts. You'll find everything you need to learn about making an android email app if you study its source. It's hosted on Github here:

https://github.com/k9mail/k-9

Here's the free app on the google play store:

https://play.google.com/store/apps/details?id=com.fsck.k9&hl=en

Anup Cowkur
  • 20,443
  • 6
  • 51
  • 84