开发者

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

开发者 https://www.devze.com 2023-04-07 19:37 出处:网络
How can I send an email through my Exchange ActiveSync mail account and not gmail? When I use createchooser only gmail ap开发者_JS百科pears...

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

精彩评论

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