在Android中配置第三方电子邮件帐户编程

在Android中配置第三方电子邮件帐户编程

本文介绍了在Android中配置第三方电子邮件帐户编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能在Android中配置一个第三方的电子邮件帐户编程。
是否有任何的API吗?

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. 询问的电子邮件地址和密码

  2. 验证凭据。如果一切正常,电子邮件帐户自动与接收和发送邮件服务器的详细信息配置

问题是,用户并不觉得容易记住服务器的详细信息等二十多个国家,我们的目标是帮助我们的用户设置他们的电子邮件帐户在其设备上

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

推荐答案

如果这是一个受欢迎的供应商如Gmail,Hotmail服务,AOL等,那么你将能够做到这一点,但个人的邮件服务器,例如公司电子邮件等都有自己的配置和这样其可以是难以编程测量

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.

至于如何实现一个邮件客户端,您可以检查出源$ C ​​$ C为K9的邮件。这是一个很好的开源,Android的全功能的电子邮件客户端。它支持POP3,IMAP和Exchange帐户。你会发现,你需要了解,如果你研究它的来源作出的Andr​​oid电子邮件应用程序的一切。它的托管在Github上的位置:

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:

下面是对谷歌Play商店的免费应用程序:

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

这篇关于在Android中配置第三方电子邮件帐户编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 10:39