【发布时间】:2012-12-17 14:33:42
【问题描述】:
我想通过电子邮件将一些凭据发送到特定的电子邮件地址。这封邮件将从哪个电子邮件地址发送?
Intent i = new Intent(Intent.ACTION_SEND);
i.setType("message/rfc822"); i.putExtra(Intent.EXTRA_EMAIL , new
String[]{"recipient@example.com"}); i.putExtra(Intent.EXTRA_SUBJECT,
"subject of email"); i.putExtra(Intent.EXTRA_TEXT , "body of
email");
try {
startActivity(Intent.createChooser(i, "Send mail...")); } catch (android.content.ActivityNotFoundException ex) {
Toast.makeText(MyActivity.this, "There are no email clients installed.", Toast.LENGTH_SHORT).show();
}
这里的发件人是谁?
【问题讨论】: