我试过这个
Intent mIntent = new Intent(Intent.ACTION_SEND);
mIntent.putExtra(Intent.EXTRA_SUBJECT, "this is test");
mIntent.setType("text/html");
Uri myUri = Uri.parse("http://www.Google.com/");
mIntent.putExtra(android.content.Intent.EXTRA_TEXT,Html.fromHtml("<a href=\""+myUri+"\">Link</a>"));
context.startActivity(android.content.Intent.createChooser(mIntent, "Email:"));
我也尝试过 setType("message/rfc822");
一切都是徒劳的,我的电子邮件没有问题(工作正常)。但是我看不到超链接,在另一端收到的原始消息甚至没有超链接href下面显示的内容
*MIME-Version: 1.0
Received: by 10.49.25.98 with HTTP; Thu, 3 Jan 2013 08:42:55 -0800 (PST)
Received: by 10.49.25.98 with HTTP; Thu, 3 Jan 2013 08:42:55 -0800 (PST)
Date: Thu, 3 Jan 2013 11:42:55 -0500
Delivered-To: DELETED
Message-ID: DELETED
Subject: this is test
From: DELETED
To: DELETED
Content-Type: multipart/alternative; boundary=047d7bea41ce0280df04d2650e27
--047d7bea41ce0280df04d2650e27
Content-Type: text/plain; charset=ISO-8859-1
Link
--047d7bea41ce0280df04d2650e27
Content-Type: text/html; charset=ISO-8859-1
<p dir="ltr">Link</p>
--047d7bea41ce0280df04d2650e27--*