Surjya Narayana Padhi
Surjya Narayana Padhi

Reputation: 7841

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 device?

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?

Upvotes: 4

Views: 7289

Answers (2)

Surjya Narayana Padhi
Surjya Narayana Padhi

Reputation: 7841

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

Upvotes: 0

Peter Knego
Peter Knego

Reputation: 80340

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.

Upvotes: 2

Related Questions