Android Use System Mail App to Send Mail
来源:互联网 发布:pandora软件 编辑:程序博客网 时间:2024/04/30 21:03
以下代码可以发送邮件,并且附带附件
try { Intent intent = new Intent(Intent.ACTION_SEND_MULTIPLE); String[] tos = {"xxx@xxx.xxx"}; intent.putExtra(Intent.EXTRA_EMAIL, tos); intent.putExtra(Intent.EXTRA_TEXT, "body"); intent.putExtra(Intent.EXTRA_SUBJECT, "subject"); ArrayList<Uri> Uris = new ArrayList<Uri>(); Uris.add(Uri.parse("file:///mnt/sdcard/1234.txt")); intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, Uris); intent.setType("image/*"); Intent.createChooser(intent, "Choose Email Client"); startActivity(intent); } catch (Exception e) { e.printStackTrace(); }
0 0
- Android Use System Mail App to Send Mail
- Use Java Mail API to Send Email
- using System.Web.Mail to send email
- android send mail
- send Mail
- Send mail
- Send mail
- SEND MAIL
- send mail
- send mail
- send mail
- SEND MAIL
- iOS SDK: Send E-mail In-App
- A Client to Send SMTP Mail
- Use My Python,Send Your Mail(十来行代码)
- Java send mail
- 發郵件 send mail task
- Send Mail in SSIS
- iOS去除数组重复元素
- Linux知识学习
- install skype in Fedora23
- hbase-default.xml file seems to be for an older version of HBase ,this version is 1.2.0
- (OK) 运行cBPM in Fedora23
- Android Use System Mail App to Send Mail
- 用动态规划解决TSP问题
- Docker命令参考
- PySpider HTTP 599: SSL certificate problem错误的解决方法
- 双肾坏死“跪守”课堂教师:真要倒也一定倒在讲台上
- 政协委员:最大愿望是让小学生步行上学
- 《数据结构》 栈代码操作集合
- AI - GNU项目发布Gneural Network神经网络软件包
- 河南公务员写古文辞职信