我在Android中使用以下代码发送邮件:
Intent emailIntent = new Intent(Intent.ACTION_SEND);
emailIntent.setType("text/html");
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL,sendTo );
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "test" );
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "msg" );
Run Code Online (Sandbox Code Playgroud)
当编译和运行代码时,它会询问我选择"GMail","BlueTooth"等应用程序的选项.但我希望在没有用户干预的情况下发送邮件.即使通过彩信发送也会对我有好处.有人可以建议我怎么做吗?