0

I am trying to send mail in background using the method provided in the accepted answer of This Question. Earlier the mails were sending easily. But due to new gmail's 2-step verification, the I am not able to send mail from email id having this feature. Please suggest any method or change in the code by which I can send mail through the mail id having the 2-step verification.

Thanks.

Community
  • 1
  • 1
AnujMathur_07
  • 2,586
  • 2
  • 18
  • 25

1 Answers1

1

With 2 Step security, you will need to generate an application specific password, and use that from your app.

This Link will bring you to the creation page for new application specific passwords.

Matt Clark
  • 27,671
  • 19
  • 68
  • 123
  • thanks for the answer. Is there any other method to do this? Because all the users of the app will have to generate a new password for the app. – AnujMathur_07 Sep 29 '13 at 17:04
  • This is why two layer security exists, so that a user will have to do this, so they know was is accessing their account. – Matt Clark Sep 29 '13 at 17:05