I have a Forgot Password TextView on which I performed onPressed() event and want the application to send Email to a specific preset Email Id. My code is as follows but it doesn't send Email to the specified address.
String value = "Hello Sir/Madam," + "\n" + "\t" + "Your email id and password are:" + "\n" + passw;
String[] address = {"nilaysheth@yahoo.co.in"};
String subject = "Forgot Password";
final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, address);
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject);
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, value);
startActivity(Intent.createChooser(emailIntent, "Send Email.."));