首页 > 代码库 > 安卓开发 调用app发送邮件代码

安卓开发 调用app发送邮件代码

Intent email = new Intent(android.content.Intent.ACTION_SEND);email.setType("plain/text");String[] emailReciver = new String[] { "earshore@gmail.com" };String emailSubject = "BrewClock Feedback";String emailBody = "";// 设置邮件默认地址email.putExtra(android.content.Intent.EXTRA_EMAIL, emailReciver);// 设置邮件默认标题email.putExtra(android.content.Intent.EXTRA_SUBJECT, emailSubject);// 设置要默认发送的内容email.putExtra(android.content.Intent.EXTRA_TEXT, emailBody);// 调用系统的邮件系统startActivity(Intent.createChooser(email,    "Please choose an app to email."));

 

安卓开发 调用app发送邮件代码