1

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 ?

3

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

2 Comments

yes I have enable now , but still got authentication failed exception
Great! If my answer helped you on that, please mark it as correct. Otherwise, I recommend you answer this question yourself with details on how you fixed it. :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.