0

i would that when the user click on a button, the app in background send an email. The user know that when he click the email is sended but he must only click. Gmail or other email's app must not opened. I have found this tutorial. But i see that it is very old (2009). Have anyone a better tutorial or is this one ok?

  • Possible duplicate of [Sending Email in Android using JavaMail API without using the default/built-in app](http://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-built-in-a) – Nishant Srivastava Dec 22 '15 at 21:23

2 Answers2

0

One way to do is to use amazon SES service. You can get it for free but there are some limits on how many emails you can send before you upgrade.

So basically you need to have amazonses jar added to your gradle build or android project. Using their library you would need to have internet access permission in your app.

You can checkout here

Amazon SES is part of Amazon AWS

Ahmed
  • 14,503
  • 22
  • 92
  • 150
0

Use this Java Class:

javax.mail.Authenticator

Or you can use this library

josedlujan
  • 5,357
  • 2
  • 27
  • 49