开发者

How can I send an email through my Exchange ActiveSync mail account?

How can I send an email through my Exchange ActiveSync mail account and not gmail? When I use createchooser only gmail ap开发者_JS百科pears...

Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); 
    String aEmailList[] = { "me@mail.com" };
    emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, aEmailList);   
    emailIntent.setType("plain/text");
    startActivity(Intent.createChooser(emailIntent, "Send email..."));


emailIntent.setType("application/octet-stream");

works for me! :-)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜