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
- Create an email client object.
- Set To,From,subject and body.
- 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.
精彩评论