I can send the mail in background without user interaction using JavaMail Api as described in the link
http://www.jondev.net/articles/Sending_Emails_without_User_Intervention_(no_Intents)_in_Android.
The above approach requires to hard code the username and password for smtp server, is it possible to send the mail using google account that the user registered on the setting application?