android 调用mail程序发送邮件

阅读更多
Intent mailIntent = new Intent(Intent.ACTION_SEND);
				String[] tos = { "[email protected]" };
//真机上用这个 模拟器上用"text/plain"
				mailIntent.setType("message/rfc822");
				mailIntent.putExtra(Intent.EXTRA_EMAIL, tos);
				mailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,
						"egame MailService");
				startActivity(mailIntent);

你可能感兴趣的:(android 调用mail程序发送邮件)