开发者

How to send automatic email via Gmail client from Android

I searched a lot from internet for this thing. But everywhere very complex code. Can anybody provide me simple code to send an automatic email without user interaction from my devic开发者_如何学运维e?

may be very simple steps like

  1. Create an email client object.
  2. Set To,From,subject and body.
  3. Send the mail with Success or fail status.

Is it possible?


No, you can not send automatic emails without user interaction via Gmail or other in-built emails apps. If you could this would be an apparent security risk, wouldn't it?

What you can do is send an Intent that invokes the in-built email app. The user then decides to send/cancel it.


I found the code with JAR files and I am using it with that. Thanks for all your efforts.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜