I need to send email in android. Initially I used android intent for sending email. But every time it is asking me to select the email client. So I moved to the JavaMail API concept. But this API asking username and password in code itself. So my friend suggest me to use Gmail API instead of JavaMail API. if anyone knows the idea or having any link about Gmail API, pls share it with me.
Asked
Active
Viewed 5,632 times
3
-
I posted this a little while ago, does this help? [sending email with gmail](http://stackoverflow.com/questions/22424719/send-email-without-password/30157213#30157213) – JenniferG Feb 15 '16 at 09:48
-
were you able to send email using gmail api ... – Shekhar Aug 04 '16 at 11:42
1 Answers
3
There is a Gmail Rest Api for sending the email. You can refer this link

Fahim
- 12,198
- 5
- 39
- 57
-
1yeah i have reviewed this link... really am unable to understand it..little bit confusing. – Anitha Mar 07 '15 at 06:00
-
I haven't tried this before. just for your sake i was checking it. Here is the example for it https://developers.google.com/gmail/api/sendEmail.java – Fahim Mar 07 '15 at 06:03
-
I have tried this code..But getting error in "Gmail service". I imported all the packages in dependencies file. still couldnt resolve this error – Anitha Mar 07 '15 at 06:05