Created
          February 4, 2019 17:20 
        
      - 
      
 - 
        
Save dynoChris/0f286c2d122d6e3b43e3d7f92df90af5 to your computer and use it in GitHub Desktop.  
    How to send email intent (only mail clients) in Android
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts( | |
| "mailto","[email protected]", null)); | |
| emailIntent.putExtra(Intent.EXTRA_SUBJECT, "[From My App]"); | |
| // emailIntent.putExtra(Intent.EXTRA_TEXT, "Body"); | |
| startActivity(Intent.createChooser(emailIntent, "Send email...")); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment