Reto
Reto

Reputation: 1552

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 appears...

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

Upvotes: 0

Views: 447

Answers (1)

Reto
Reto

Reputation: 1552

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

works for me! :-)

Upvotes: 1

Related Questions