简体   繁体   中英

Send E-mail in background on Click event

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?

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

Use this Java Class:

javax.mail.Authenticator

Or you can use this library

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM