How to send emails from my Android application?

前端 未结 21 2347
春和景丽
春和景丽 2020-11-22 00:38

I am developing an application in Android. I don\'t know how to send an email from the application?

21条回答
  •  悲哀的现实
    2020-11-22 00:45

    Use this for send email...

    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'
    

提交回复
热议问题