I have used JavaMail-android libraries to send mail in background .In order to free user from username and password I decided to use Auth token generated when adding an account /configuring account in android phone .So can i get the token and how could i use the token to send mail in background as a did using smtp (javamail-android) libraries .
I have used JavaMail-android libraries to send mail in background .In order to free
Share
Hi its so simple and easy call your email sending class through Service it will work automatically email will send on particular time.
Here i have posted sample code:
you should write code in service as
GMailSender sender = new GMailSender(send_id,send_pass,imgpath);its for sending email through your gmail id only.
and now GmailSender.java as follows:
{
try this sample and try for all email ids. and make sure that you have import all libraries needed..