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.