Send Email Intent

前端 未结 30 3283
忘掉有多难
忘掉有多难 2020-11-22 07:27
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType(\"text/html\");
intent.putExtra(Intent.EXTRA_EMAIL, \"emailaddress@emailaddress.com\");
intent.putExtr         


        
30条回答
  •  渐次进展
    2020-11-22 08:04

    Use this:

    boolean success = EmailIntentBuilder.from(activity)
            .to("support@example.org")
            .cc("developer@example.org")
            .subject("Error report")
            .body(buildErrorReport())
            .start();
    

    use build gradle :

    compile 'de.cketti.mailto:email-intent-builder:1.0.0'
    

提交回复
热议问题