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

查看:760
本文介绍了从联系我们页面发送邮件到具体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" /> 

在清单文件。

推荐答案

我认为你正试图以编程方式发送电子邮件,无需打开电子邮件作曲。

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

如果这样你就可以检查此链接

If so you can check this link

希望这有助于

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

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