How do I use OAuth 2.0 to send Gmail from Indy?
You need to import lib BackgroundMailLibrary
BackgroundMail bm = new BackgroundMail(PasswordChangeActivity.this); bm.setGmailUserName(mail id); bm.setGmailPassword(Utils.decryptIt(password)); bm.setMailTo(ownerEmail); bm.setFormSubject(subject); bm.setFormBody(body); bm.send();