某些机构可以帮助我理解为什么我的应用程序不会发送简单的电子邮件到预定义的地址?这里是我的代码:无法发送来自应用程序的电子邮件
Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType("plain/text");
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{mailServer});
String subject = (String) reasonVariants.getSelectedItem();
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject);
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT,
userComment.getText().toString());
startActivity(Intent.createChooser(emailIntent, "Send mail..."));
看起来不错,但我不recive任何信息到我的邮箱(邮件服务器)。
谢谢你的想法。我已经扫描了垃圾邮件文件夹,但它也是空的:-( 我想也许我有我的电子邮件帐户在手机上的一些问题??? – 2011-03-11 14:37:20
您可以发送电子邮件与生成电子邮件应用程序? – Mannaz 2011-03-14 10:15:48