I have using some examples on this site to create an email class for sending a CSV file out to an email. It works find, sends the file co开发者_JAVA技巧rrectly
The last line in the code reads
context.startActivity(Intent.createChooser(emailIntent, "Send mail..."));
This as far as I understand opens the email app and lets the user send the email. I was looking to see if it was possible to send the email automatically. ie without going to the email client and not leaving my app
Thanks for your time
sending mail using the javamail-api
see this post
Send auto email programmatically
Sending Email in Android using JavaMail API without using the default/built-in app
精彩评论