利用Google帐户凭据在Android中发送电子邮件 [英] Leverage Google account credentials to send email in Android

查看:234
本文介绍了利用Google帐户凭据在Android中发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android中是否可以使用手机相关的GMail凭据以编程方式发送电子邮件?当我明确提供用户名和密码时,我可以发送电子邮件,但我希望利用已经与手机相关联的Google帐户。请注意,我不需要实际访问用户名或密码;我只想间接利用这些信息发送电子邮件。

Is it possible in Android to programmatically send an email using the phone's associated GMail credentials? I can send an email when I explicitly provide the username and password, but I was hoping to leverage the Google account already associated with the phone. Note that I don't need to actually access the username or password; I just want to leverage this information indirectly to send email.

推荐答案

看起来像一个项目正在进行中,可能会支持这个功能,虽然我还没有机会挖掘它。请参阅 Google-authenticator for for Android

It looks like a project is underway that may support this functionality, though I have not yet had a chance to dig into it. See the google-authenticator-for-android.

这篇关于利用Google帐户凭据在Android中发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆