开发者

How to send automatic email via Gmail client from Android

开发者 https://www.devze.com 2023-04-08 00:19 出处:网络
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?

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

精彩评论

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