> What text box? Scratch that out. Let's just say that I have the user's email address in a String named "userEmail".
> What application? Running where? It is actually a dialog box that when he presses send, it will send an email to his mailbox. > What mailbox? The user's personal email address. For example [email protected] > What mail client? Every time I try to send an email with my code, 1) The "To: " field does not get populated. 2) The mail client pops up with the "To: , Subject, and Body" fields and a "send" button. However, I want the email to be sent automatically, without having to go through the mail UI. My code: // Setup the recipient in a String array String[] mailto = {"[email protected]"}; // Create a new Intent to send messages Intent sendIntent = new Intent(Intent.ACTION_SEND); //Write the body of the Email String emailBody = "You're password is: "; // Add attributes to the intent sendIntent.setType("text/plain"); //use this line for testing in the emulator //sendIntent.setType("message/rfc822"); //use this line for testing on the real phone sendIntent.putExtra(Intent.EXTRA_EMAIL, mailto); sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Your Password"); sendIntent.putExtra(Intent.EXTRA_TEXT, emailBody); startActivity(Intent.createChooser(sendIntent, "Please pick your preferred email application.")); The address which will send this email is pre-defined. Thanks, Noam. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

