'Send email without intent
I'm asking if there's a method to send an email automatically from my app in Android Studio without opening Gmail with "Intent.ACTION_SEND" and without turning on "less secure apps" on Google account settings. My app has already a Google sign-in method connected with Firebase Project.
Solution 1:[1]
Is it possible
Yes, it is possible. There are decades of libraries for this on the web.You should have tried surfing for a while.
How to Implement
You should use this library.Code is given below
SendMail mail = new SendMail("[email protected]", "yourEmailsPass",
"otherUser'[email protected]",
"Title",
"Yes, it's working well\nI will use it always.:)");
mail.execute();
References
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Sambhav Khandelwal |
