How to send emails from my Android application?

前端 未结 21 2679
春和景丽
春和景丽 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 01:02

     Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts(
                "mailto","ebgsoldier@gmail.com", null));
        emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Forgot Password");
        emailIntent.putExtra(Intent.EXTRA_TEXT, "Write your Pubg user name or Phone Number");
        startActivity(Intent.createChooser(emailIntent, "Send email..."));**strong text**
    

提交回复
热议问题