我有一個應用程序發送郵件到我定義的郵件地址「[email protected]」。爲此,我創建了自己的自定義電子郵件視圖,其中包含複選框郵件正文和其他選項。現在我想當發送按鈕被按下時,我的應用程序不應該去gmail視圖或其他電子郵件客戶端查看它直接提交數據發送郵件來自用戶定義郵件視圖Android
String recepientEmail =「[email protected]」;
//或者設置爲目的地的電子郵件或留空
Intent intent = new Intent(Intent.ACTION_SENDTO);
intent.setData(Uri.parse("mailto:" + recepientEmail));
startActivity(intent);
但在提交打開Gmail或選配的電子郵件客戶端的看法,但我不希望顯示Gmail檢視
看到這個鏈接:http://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-built-in-a – 2013-04-04 08:28:24
你可以下載從這裏添加到你的android軟件包中:http://code.google.com/p/javamail-android/ – 2013-04-04 08:29:43
但是隻能發送郵件,只能從gmail帳戶 – User42590 2013-04-04 08:31:54