I am following this tutorial for sending Emails from My App.
When i try to run this in my device its getting error as authentication failed because of Google New Policy
here is screenshot of google mailenter image description here
so is there any updated solution for send email in background ?
-
Have you tried turning this off?Dipen Shah– Dipen Shah2015年09月04日 12:20:34 +00:00Commented Sep 4, 2015 at 12:20
-
I think your question was already answered here: [stackoverflow.com/questions/2020088/… [1]: stackoverflow.com/questions/2020088/…user5292387– user52923872015年09月04日 12:33:50 +00:00Commented Sep 4, 2015 at 12:33
-
You also might want to try this development version of JavaMail for Android, especially if you want to use OAuth2 authentication instead of enabling support for less secure apps.Bill Shannon– Bill Shannon2015年09月04日 21:16:08 +00:00Commented Sep 4, 2015 at 21:16
1 Answer 1
You need to properly setup your Gmail account.
If you have 2-step verification enabled:
- Please follow this tutorial to create an app password for your app.
If you don't have 2-step verification enabled:
- Simply enable less secure apps login here.
I don't recommend it, though. I believe your password is stored in plain text as a String value, right?
A little bit of reverse engineering and it's out in the public.
2 Comments
Explore related questions
See similar questions with these tags.