在android系统发送电子邮件... [英] sending an email in android ...

查看:183
本文介绍了在android系统发送电子邮件...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从我的应用程序发送电子邮件。
在code云LIK这样的:

I am trying to send an email from my app. the code goes lik this :

Intent i = new Intent(Intent.ACTION_SEND);
i.setType("text/plain");
i.putExtra(Intent.EXTRA_EMAIL  , new String[]{"recipient@gmail.com"});
i.putExtra(Intent.EXTRA_SUBJECT, "subject of email");
i.putExtra(Intent.EXTRA_TEXT   , "body of email");
startActivity(Intent.createChooser(i, "Send mail..."));

在模拟器中再次显示了电子邮件客户端,我必须输入收件人地址,当我点击发送按钮,它不发送。在这里输入的形象描述

in the emulator it shows the email client again i have to enter the recipient address, when i click send button it doesnt send .

和它正显示在消息(MMS)的上下文

and it is showing the messaging(MMS) context.

任何帮助是非常AP preciated ...

any help is highly appreciated ...

推荐答案

这里的问题是电子邮件客户端在模拟器中未配置,,,
它工作正常,在设备...

here the problem was the email client was not configured in the emulator,,, It works fine in the device ...

这篇关于在android系统发送电子邮件...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆