I am developing an Application in android which include feature like sending emails. I am not getting how to start this.Did anyone tell me How email sending work in Android ? I mean what are the steps to send email via android application ?
            Asked
            
        
        
            Active
            
        
            Viewed 139 times
        
    -5
            
            
        - 
                    Read this: [Android Mail](http://stackoverflow.com/questions/2197741/how-to-send-email-from-my-android-application) – SamDroid Jun 03 '13 at 12:08
- 
                    1seems like a http://google.com stops working ... – Selvin Jun 03 '13 at 12:09
- 
                    http://stackoverflow.com/questions/15548246/attaching-file-and-sending-mail-using-smtp-in-android – yuva ツ Jun 03 '13 at 12:21
2 Answers
1
            
            
        this will send email via any installed mail client.
Intent i = new Intent(Intent.ACTION_SEND);
i.setType("message/rfc822");
i.putExtra(Intent.EXTRA_EMAIL  , new String[]{"recipient@gmail.com"});
i.putExtra(Intent.EXTRA_SUBJECT, "subject");
i.putExtra(Intent.EXTRA_TEXT   , "body");
try {
    startActivity(Intent.createChooser(i, "Send e-mail..."));
} catch (android.content.ActivityNotFoundException ex) {
    //you have no mail client
}
 
    
    
        mihail
        
- 2,173
- 19
- 31
0
            
            
        you can send in any of the following way.
- 
                    lol, seems like i've been in the famous thread long time ago, my answer is a part of mine project :D – mihail Jun 03 '13 at 12:12
 
     
    