[英]How to organise sending an email from my android app
I have to send an email from IntentService
. 我必须从
IntentService
发送电子邮件。 My data is mostly the backup from a phone. 我的数据主要来自手机的备份。 I am using
smtp.google.com
+ javamail
.I can use a gmail account and send data through it.( http://www.oracle.com/technetwork/java/javamail/faq/index.html#gmail ): From my point of view the problem with this approach is that my app uses the gmail account and sends data via my account. 我正在使用
smtp.google.com
+ javamail
。我可以使用gmail帐户并通过它发送数据。( http://www.oracle.com/technetwork/java/javamail/faq/index.html#gmail ):从我认为这种方法的问题是我的应用使用了gmail帐户并通过我的帐户发送数据。 All personal data would go through one my account. 所有个人数据将通过我的一个帐户。 Question#1 - Is it a good approach to do it?
问题#1-这是一个好方法吗?
The gmail api uses OAuth 2.0. gmail API使用OAuth 2.0。 And I have to store my client ID in some place of my program.
而且我必须将客户ID存储在程序的某个位置。 I read that it is impossible to restore login/password from it.
我读到不可能从中恢复登录名/密码。 This token has validity.
该令牌具有有效性。 Question#2 Is it possible to use this token for reading or deleting something from gmail account until it is valid?
问题#2是否可以使用此令牌从Gmail帐户中读取或删除某些内容,直到有效为止?
For all examples of my app would be the same gmail account. 对于我的应用程序的所有示例,都是相同的gmail帐户。 This think bothers me sometimes, because if something happens with gmail account I will not be able to do anything.
这种想法有时会打扰我,因为如果gmail帐户发生问题,我将无能为力。 Question#3 Is it worth to use services like https://www.mailgun.com/ or maybe to create at least another gmail account and to use them both?
问题#3是否值得使用https://www.mailgun.com/之类的服务,或者至少创建另一个Gmail帐户并同时使用它们?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.