How can I send an email from android application directly without showing the default email form of the device?

前端 未结 3 687
情话喂你
情话喂你 2020-12-03 07:19

I am building a form that sends emails from an android application, I am using Intents to send the email, that is:

Intent sendIntent;
sendIntent = new Inten         


        
相关标签:
3条回答
  • 2020-12-03 07:32

    From what I have been able to find people suggest you write your own mini email app within your app. The following link is to a person who did just that:

    http://www.jondev.net/articles/Sending_Emails_without_User_Intervention_(no_Intents)_in_Android

    Keep in mind to scroll through the bottom comments when you get stuck implementing certain parts. I hope that helps you from reinventing the wheel. :)

    0 讨论(0)
  • 2020-12-03 07:36

    There are two ways

    1) using SMTP follow the link for details

    2) using Webservice( for example PHP script ) so there is a server side code and you hit that URL with param like ( name,subject etc) so basically PHP code send mail at the end and it's very easy to use .

    Personally, I suggest you use Webservice

    0 讨论(0)
  • 2020-12-03 07:37

    There are two solution

    1) use JavaMail API

    2) Implement SMTP to send mail without showing default.email application.

    0 讨论(0)
提交回复
热议问题