View Single Post
Old May 12th, 2009, 01:28 AM   #12 (permalink)
Swathi
New Member
 
Join Date: May 2009
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sending Email From android application

I have tried with the following code ,but i got an error message"NO applications can perform this action".

Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_EMAIL, mailto);
sendIntent.putExtra(Intent.EXTRA_SUBJECT,
subject.getText().toString());
sendIntent.putExtra(Intent.EXTRA_TEXT,
body.getText().toString());
sendIntent.setType("text/plain");

startActivity(Intent.createChooser(sendIntent, "MySendMail"));

Can anybody tell me, the solution for this ?

I have tried to send an email using SMTP server (Gmail), but i got an error
"java.lang.verifyError:javax.mail.internet.Mimemes sage."
Swathi is offline  
Last edited by Swathi; May 12th, 2009 at 01:37 AM.
Reply With Quote