1
A
回答
0
我用这个包装:
所有的public static void sendEmail(Context ctx) {
Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
String[] recipients = new String[]{"***[email protected]***"};// Replace your email id here
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, recipients);
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "*TITLE*");// Replace your title with "TITLE"
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "");
emailIntent.setType("***text/plain***"); // set content type here
ctx.startActivity(Intent.createChooser(emailIntent, "Send E-mail..."));// it will provide you supported all app to send email.
}
1
首先创建要获得反馈的电子邮件。 所以你有你的电子邮件和密码。
然后创建一个包含一个EditText设有编号的活动
<EditText android:id="body"
android:layout .... />
<EditText android:id="useremail"
... />
<EditText android:id="username"
... />
只要按照下面的链接: link
,并填写以下信息:
GMailSender sender = new GMailSender("[email protected]", "password");
sender.sendMail("Users Feedback",
"User Name:\t"+((EditText)getValueById(R.id.username).getText())+"\n"
+"User Email:\t"+((EditText)getValueById(R.id.useremail).getText())+"\n\n"
+"Content:\t"+((EditText)getValueById(R.id.body).getText()),
"[email protected]",
"[email protected]");
相关问题
- 1. 如何发送电子邮件到特定的电子邮件?
- 2. 如何从应用程序向电子邮件帐户发送电子邮件(就像“发送反馈”一样)
- 3. 反馈表格发送空的电子邮件
- 4. 通过电子邮件发送反馈表
- 5. asp.net使用mvc 3通过电子邮件发送反馈
- 6. 如何用c#发送带有asp.net的电子邮件(反馈表)
- 7. Android发送电子邮件
- 8. 如何将Android反馈表单作为电子邮件提交?
- 9. 在Android中发送电子邮件
- 10. 在Android中发送电子邮件
- 11. 在Android中发送电子邮件
- 12. 如何使用MVC Razor通过反馈表发送电子邮件
- 13. Android发送电子邮件不存在发送的电子邮件客户端
- 14. 如何在特定时间自动发送电子邮件ASP.NET
- 15. 如何使用quartz.net在特定日期发送电子邮件
- 16. 如何使用php在特定时间发送电子邮件?
- 17. PHP电子邮件反馈表
- 18. 反馈电子邮件中的设备信息android
- 19. 发送电子邮件到特殊的电子邮件
- 20. 确定电子邮件发件人并发送电子邮件
- 21. 如何从特定的IP地址发送电子邮件?
- 22. 如何在Android中发送电子邮件正文中的ArrayList?
- 23. 反复发送电子邮件。 c#
- 24. 如何发送电子邮件至选定的电子邮件在PHP
- 25. 你如何从Android的任何电子邮件地址发送电子邮件?
- 26. 发送电子邮件在Android ...
- 27. Android在后台发送电子邮件
- 28. 如何用Android中的文件附件发送电子邮件
- 29. 在特定的选定日期/时间发送电子邮件
- 30. 发送电子邮件到特定的电子邮件ID点击TextView
你的意思是你想例如点击一个按钮并打开带有预填充字段(发件人,主题和内容)的GMail编辑器? – thetonrifles
没有家伙我不想这样。看我填写所有的信息,然后点击发送按钮。我将通过电子邮件收到所有信息。 –
我不想打开intent.chooser我直接发送电子邮件来点击我的活动按钮。 –