1

我正在开发一个应用程序,我正在发送电子邮件,其中有一个注册表单,并且包含一些字段,即first_namelast_namestatephone_number、和。所以问题是我已经成功完成了我已经涵盖的部分的电子邮件,密件抄送,抄送,主题和消息,但我还想要我在注册表中填写的信息,这些信息应该显示在消息中电子邮件中的区域。datetimephone_number

4

2 回答 2

1

使用此代码:

intent.putExtra(Intent.EXTRA_EMAIL  , "receipentEmailId@abc.com");
intent.putExtra(Intent.EXTRA_SUBJECT, "add any subject u want");
intent.putExtra(Intent.EXTRA_TEXT   , "<here goes the content like firstName.getText().toString()>"");
于 2013-07-25T11:34:18.200 回答
0
Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri
                            .fromParts("mailto","abc@mail.com", null));
emailIntent.putExtra(Intent.EXTRA_SUBJECT,"Your Subject");
emailIntent.putExtra(Intent.EXTRA_TEXT,"Your Content !");
startActivity(Intent.createChooser(emailIntent,"Send email..."));
于 2013-07-25T11:51:50.500 回答