1

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.

Alex Mamo
  • 130,605
  • 17
  • 163
  • 193

2 Answers2

2

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("youremail@email.com", "yourEmailsPass",
    "otherUser'sEmail@email.com",
    "Title",
    "Yes, it's working well\nI will use it always.:)");
mail.execute();

References


  1. Github
  2. Youtube
Sambhav Khandelwal
  • 3,585
  • 2
  • 7
  • 38
1

When it comes to Firebase and sending emails to users, the best option that you have is to use Trigger Email Extension from Firebase. There is no need to open your Gmail account in order to send an email. To implement the extension please follow the steps that are explained in the following article:

Alex Mamo
  • 130,605
  • 17
  • 163
  • 193