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. 如何用c#发送带有asp.net的电子邮件(反馈表)
- 5. 在Android中发送电子邮件
- 6. 如何使用MVC Razor通过反馈表发送电子邮件
- 7. Android发送电子邮件不存在发送的电子邮件客户端
- 8. PHP电子邮件反馈表
- 9. 反馈电子邮件中的设备信息android
- 10. 发送电子邮件到特殊的电子邮件
- 11. 如何从特定的IP地址发送电子邮件?
- 12. 反复发送电子邮件。 c#
- 13. 你如何从Android的任何电子邮件地址发送电子邮件?
- 14. Android在后台发送电子邮件
- 15. 发送电子邮件在Android ...
- 16. 如何用Android中的文件附件发送电子邮件
- 17. 发送电子邮件到特定的电子邮件ID点击TextView
- 18. 如何发送电子邮件在Java
- 19. 如何在django发送电子邮件?
- 20. 如何在html电子邮件中发送电子邮件回复或转发?
- 21. 使用mailchimp发送电子邮件到特定邮件
- 22. 发送反馈电子邮件表单有哪些可能的方式?
- 23. 发送电子邮件惠特codeigniter MAMP
- 24. PHP发送电子邮件多次发送电子邮件
- 25. 如何使用java邮件从android发送电子邮件
- 26. 如何通过电子邮件发送电子邮件地址
- 27. 如何在Android中发送电子邮件?
- 28. 如何在phonegap中发送电子邮件android
- 29. 如何使用intel xdk在iphone/android中发送电子邮件?
- 30. 如何在Slack中发送邮件作为电子邮件
你的意思是你想例如点击一个按钮并打开带有预填充字段(发件人,主题和内容)的GMail编辑器? – thetonrifles
没有家伙我不想这样。看我填写所有的信息,然后点击发送按钮。我将通过电子邮件收到所有信息。 –
我不想打开intent.chooser我直接发送电子邮件来点击我的活动按钮。 –