0

I am using the gmailsender to send email in my app. I followed the link below Sending Email in Android using JavaMail API without using the default/built-in app

I am however facing a strange issue. While testing it in eclipse, everything goes fine. When I get my project signed(I am also using proguard while generating APK) and then install the corresponding ready=to-upload APK on my phone, the gmail sender does not seem to work. There is no error message thrown, but email does not get sent to the address specified. Same thing works very well then I test it in developer version. But while signing, compressing(using proguard)and exporting to an APK file, the same gmailsender functionality does not work. I am not using any attachments in the email.

Any help is sincerely appreciated.

Community
  • 1
  • 1
user1938357
  • 1,466
  • 3
  • 20
  • 33

1 Answers1

0

Go to your google developer console

and click on "API Access" on the left menu to generate the right api access token for your Android application.

Stephan Branczyk
  • 9,363
  • 2
  • 33
  • 49
  • I have created a new Key for Android apps (with certificates) as mentioned there. How do I use this key now in my android app? – user1938357 Jul 09 '13 at 06:04
  • Also under "Services" I don't see any email services. So do I need to generate key for using gmail in my app? – user1938357 Jul 09 '13 at 06:26