发送邮件从联系我们页面到特定的emailid [英] send mail from contact us page to the specific emailid

查看:168
本文介绍了发送邮件从联系我们页面到特定的emailid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试了...但是当我提交表单到撰写邮件...我想通过点击提交按钮发送邮件...请帮助我...

I have tried it ... but when I submit the form it goes to the compose mail ... I want to send the mail only by clicking the submit button... please help me...

Intent mailintent = new Intent(android.content.Intent.ACTION_SEND);
mailintent.setType("text/plain");
mailintent.putExtra(android.content.Intent.EXTRA_EMAIL,new String[]        
         {"amitk.123@gmail.com" , "ankush.123@gmail.com"});
mailintent.putExtra(android.content.Intent.EXTRA_SUBJECT, "info...");         
startActivity(mailintent);

<uses-permission android:name="android.permission.INTERNET" /> 

在清单文件中。

推荐答案

我想你试图以编程方式发送电子邮件,没有打开Email Composer。

I think you are trying to send Email programmatically, without open Email Composer.

如果是这样,你可以检查这个链接

If so you can check this link

希望这有帮助

这篇关于发送邮件从联系我们页面到特定的emailid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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