简体   繁体   English

android开发中如何使用Gmail API发送邮件

[英]How to use Gmail API for sending email in android development

I need to send email in android.我需要在android中发送电子邮件。 Initially I used android intent for sending email.最初我使用 android 意图发送电子邮件。 But every time it is asking me to select the email client.但每次它都要求我选择电子邮件客户端。 So I moved to the JavaMail API concept.所以我转向了 JavaMail API 概念。 But this API asking username and password in code itself.但是这个 API 在代码本身中询问用户名和密码。 So my friend suggest me to use Gmail API instead of JavaMail API.所以我的朋友建议我使用 Gmail API 而不是 JavaMail API。 if anyone knows the idea or having any link about Gmail API, pls share it with me.如果有人知道这个想法或有任何关于 Gmail API 的链接,请与我分享。

There is a Gmail Rest Api for sending the email.有一个用于发送电子邮件的 Gmail Rest Api。 You can refer this link你可以参考这个链接

https://developers.google.com/gmail/api/guides/sending https://developers.google.com/gmail/api/guides/sending

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM